HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpbiancoarte/wp-content/plugins/qi-blocks/assets/dist/blog-list.js
(()=>{var e={2:(e,t,o)=>{var n=o(4335)(Object.keys,Object);e.exports=n},80:(e,t,o)=>{var n=o(6025),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,o=n(t,e);return!(o<0)&&(o==t.length-1?t.pop():r.call(t,o,1),--this.size,!0)}},270:(e,t,o)=>{var n=o(7068),r=o(346);e.exports=function e(t,o,l,a,i){return t===o||(null==t||null==o||!r(t)&&!r(o)?t!=t&&o!=o:n(t,o,l,a,e,i))}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},689:(e,t,o)=>{var n=o(2),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,o,l,a,i){var s=1&o,c=n(e),u=c.length;if(u!=n(t).length&&!s)return!1;for(var p=u;p--;){var m=c[p];if(!(s?m in t:r.call(t,m)))return!1}var b=i.get(e),d=i.get(t);if(b&&d)return b==t&&d==e;var f=!0;i.set(e,t),i.set(t,e);for(var g=s;++p<u;){var h=e[m=c[p]],k=t[m];if(l)var y=s?l(k,h,m,t,e,i):l(h,k,m,e,t,i);if(!(void 0===y?h===k||a(h,k,o,l,i):y)){f=!1;break}g||(g="constructor"==m)}if(f&&!g){var v=e.constructor,_=t.constructor;v==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof _&&_ instanceof _||(f=!1)}return i.delete(e),i.delete(t),f}},828:(e,t,o)=>{var n=o(7556);e.exports=function(e){return null==e?"":n(e)}},882:e=>{e.exports=function(e,t,o,n){var r=-1,l=null==e?0:e.length;for(n&&l&&(o=e[++r]);++r<l;)o=t(o,e[r],r,e);return o}},999:(e,t,o)=>{var n=o(9302),r=o(6800);e.exports=function(e){return n(function(t,o){var n=-1,l=o.length,a=l>1?o[l-1]:void 0,i=l>2?o[2]:void 0;for(a=e.length>3&&"function"==typeof a?(l--,a):void 0,i&&r(o[0],o[1],i)&&(a=l<3?void 0:a,l=1),t=Object(t);++n<l;){var s=o[n];s&&e(t,s,n,a)}return t})}},1033:e=>{e.exports=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}},1074:e=>{e.exports=function(e){return e.split("")}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1175:(e,t,o)=>{var n=o(6025);e.exports=function(e,t){var o=this.__data__,r=n(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}},1331:(e,t,o)=>{var n=o(2552),r=o(8879),l=o(346),a=Function.prototype,i=Object.prototype,s=a.toString,c=i.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!l(e)||"[object Object]"!=n(e))return!1;var t=r(e);if(null===t)return!0;var o=c.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&s.call(o)==u}},1438:(e,t)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!0;var a,i,s={};for(a=0,i=n.length;a<i;a++)s[n[a]]=!0;for(a=0,i=r.length;a<i;a++){var c=r[a],u=e[c],p=t[c];if(u!==p){if(!s[c]||null===u||null===p||"object"!==o(u)||"object"!==o(p))return!0;var m=Object.keys(u),b=Object.keys(p);if(m.length!==b.length)return!0;for(var d=0,f=m.length;d<f;d++){var g=m[d];if(u[g]!==p[g])return!0}}}return!1}},1572:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=n?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(o,r,l):o[r]=e[r]}o.default=e,t&&t.set(e,o);return o}(o(6540)),r=a(o(5556)),l=a(o(1438));function a(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c.apply(this,arguments)}function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function p(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)o=l[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)o=l[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function m(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e){return function(){var t,o=f(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var n=f(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return d(e)}(this,t)}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function h(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(i,e);var t,o,r,a=b(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return h(d(e=a.call.apply(a,[this].concat(o))),"storeItemReference",function(t){null!==t&&(e.item=t)}),h(d(e),"onMouseEnter",function(t){var o=e.props,n=o.sectionIndex,r=o.itemIndex;e.props.onMouseEnter(t,{sectionIndex:n,itemIndex:r})}),h(d(e),"onMouseLeave",function(t){var o=e.props,n=o.sectionIndex,r=o.itemIndex;e.props.onMouseLeave(t,{sectionIndex:n,itemIndex:r})}),h(d(e),"onMouseDown",function(t){var o=e.props,n=o.sectionIndex,r=o.itemIndex;e.props.onMouseDown(t,{sectionIndex:n,itemIndex:r})}),h(d(e),"onClick",function(t){var o=e.props,n=o.sectionIndex,r=o.itemIndex;e.props.onClick(t,{sectionIndex:n,itemIndex:r})}),e}return t=i,o=[{key:"shouldComponentUpdate",value:function(e){return(0,l.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,o=e.item,r=e.renderItem,l=e.renderItemData,a=p(e,["isHighlighted","item","renderItem","renderItemData"]);return delete a.sectionIndex,delete a.itemIndex,"function"==typeof a.onMouseEnter&&(a.onMouseEnter=this.onMouseEnter),"function"==typeof a.onMouseLeave&&(a.onMouseLeave=this.onMouseLeave),"function"==typeof a.onMouseDown&&(a.onMouseDown=this.onMouseDown),"function"==typeof a.onClick&&(a.onClick=this.onClick),n.default.createElement("li",c({role:"option"},a,{ref:this.storeItemReference}),r(o,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?u(Object(o),!0).forEach(function(t){h(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({isHighlighted:t},l)))}}],o&&m(t.prototype,o),r&&m(t,r),i}(n.Component);t.default=k,h(k,"propTypes",{sectionIndex:r.default.number,isHighlighted:r.default.bool.isRequired,itemIndex:r.default.number.isRequired,item:r.default.any.isRequired,renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,onMouseEnter:r.default.func,onMouseLeave:r.default.func,onMouseDown:r.default.func,onClick:r.default.func})},1578:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,r=!1,l=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done)&&(o.push(a.value),!t||o.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&i.return&&i.return()}finally{if(r)throw l}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var o=e.data,n=e.multiSection;function r(e){var r=t(e,2),l=r[0],a=r[1];return n?null===a||a===o[l]-1?null===(l=function(e){for(null===e?e=0:e++;e<o.length&&0===o[e];)e++;return e===o.length?null:e}(l))?[null,null]:[l,0]:[l,a+1]:0===o||a===o-1?[null,null]:null===a?[null,0]:[null,a+1]}return{next:r,prev:function(e){var r=t(e,2),l=r[0],a=r[1];return n?null===a||0===a?null===(l=function(e){for(null===e?e=o.length-1:e--;e>=0&&0===o[e];)e--;return-1===e?null:e}(l))?[null,null]:[l,o[l]-1]:[l,a-1]:0===o||0===a?[null,null]:null===a?[null,o-1]:[null,a-1]},isLast:function(e){return null===r(e)[1]}}}},1601:e=>{"use strict";e.exports=function(e){return e[1]}},1733:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},1791:(e,t,o)=>{var n=o(6547),r=o(3360);e.exports=function(e,t,o,l){var a=!o;o||(o={});for(var i=-1,s=t.length;++i<s;){var c=t[i],u=l?l(o[c],e[c],c,o,e):void 0;void 0===u&&(u=e[c]),a?r(o,c,u):n(o,c,u)}return o}},1882:(e,t,o)=>{var n=o(2552),r=o(3805);e.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1961:(e,t,o)=>{var n=o(9653);e.exports=function(e,t){var o=t?n(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}},1986:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2054:e=>{var t="\\ud800-\\udfff",o="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",l="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+r+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+s+("(?:\\u200d(?:"+[l,a,i].join("|")+")"+c+s+")*"),p="(?:"+[l+n+"?",n,a,i,o].join("|")+")",m=RegExp(r+"(?="+r+")|"+p+u,"g");e.exports=function(e){return e.match(m)||[]}},2225:e=>{var t="\\ud800-\\udfff",o="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+l+"]",i="\\d+",s="["+o+"]",c="["+n+"]",u="[^"+t+l+i+o+n+r+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",b="["+r+"]",d="(?:"+c+"|"+u+")",f="(?:"+b+"|"+u+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",h="(?:['’](?:D|LL|M|RE|S|T|VE))?",k="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",v=y+k+("(?:\\u200d(?:"+["[^"+t+"]",p,m].join("|")+")"+y+k+")*"),_="(?:"+[s,p,m].join("|")+")"+v,w=RegExp([b+"?"+c+"+"+g+"(?="+[a,b,"$"].join("|")+")",f+"+"+h+"(?="+[a,b+d,"$"].join("|")+")",b+"?"+d+"+"+g,b+"+"+h,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,_].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},2243:(e,t,o)=>{"use strict";e.exports=o(7424).default},2404:(e,t,o)=>{var n=o(270);e.exports=function(e,t){return n(e,t)}},2428:e=>{e.exports=function(){return!1}},2444:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=n?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(o,r,l):o[r]=e[r]}o.default=e,t&&t.set(e,o);return o}(o(6540)),r=a(o(5556)),l=a(o(1438));function a(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return function(){var t,o=p(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var n=p(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}var b,d,f,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(i,e);var t,o,r,a=u(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),a.apply(this,arguments)}return t=i,(o=[{key:"shouldComponentUpdate",value:function(e){return(0,l.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,o=e.renderSectionTitle,r=e.theme,l=e.sectionKeyPrefix,a=o(t);return a?n.default.createElement("div",r("".concat(l,"title"),"sectionTitle"),a):null}}])&&c(t.prototype,o),r&&c(t,r),i}(n.Component);t.default=g,b=g,d="propTypes",f={section:r.default.any.isRequired,renderSectionTitle:r.default.func.isRequired,theme:r.default.func.isRequired,sectionKeyPrefix:r.default.string.isRequired},d in b?Object.defineProperty(b,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[d]=f},2507:(e,t,o)=>{var n=o(8754),r=o(9698),l=o(3912),a=o(3222);e.exports=function(e){return function(t){t=a(t);var o=r(t)?l(t):void 0,i=o?o[0]:t.charAt(0),s=o?n(o,1).join(""):t.slice(1);return i[e]()+s}}},2552:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2694:(e,t,o)=>{"use strict";var n=o(6925);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,l,a){if(a!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return o.PropTypes=o,o}},2824:(e,t,o)=>{var n=o(7805),r=o(3290),l=o(1961),a=o(3007),i=o(5529),s=o(2428),c=o(6449),u=o(3693),p=o(3656),m=o(1882),b=o(3805),d=o(1331),f=o(7167),g=o(4974),h=o(9884);e.exports=function(e,t,o,k,y,v,_){var w=g(e,o),q=g(t,o),S=_.get(q);if(S)n(e,o,S);else{var A=v?v(w,q,o+"",e,t,_):void 0,x=void 0===A;if(x){var I=c(q),C=!I&&p(q),E=!I&&!C&&f(q);A=q,I||C||E?c(w)?A=w:u(w)?A=a(w):C?(x=!1,A=r(q,!0)):E?(x=!1,A=l(q,!0)):A=[]:d(q)||s(q)?(A=w,s(w)?A=h(w):b(w)&&!m(w)||(A=i(q))):x=!1}x&&(_.set(q,A),y(A,q,k,v,_),_.delete(q)),n(e,o,A)}}},2865:e=>{e.exports=function(e){return e}},3007:e=>{e.exports=function(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}},3221:e=>{e.exports=function(e){return function(t,o,n){for(var r=-1,l=Object(t),a=n(t),i=a.length;i--;){var s=a[e?i:++r];if(!1===o(l[s],s,l))break}return t}}},3222:e=>{e.exports=function(e){return e}},3243:(e,t,o)=>{var n=o(6110),r=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},3290:(e,t,o)=>{e=o.nmd(e);var n=o(9325),r=t&&!t.nodeType&&t,l=r&&e&&!e.nodeType&&e,a=l&&l.exports===r?n.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var o=e.length,n=i?i(o):new e.constructor(o);return e.copy(n),n}},3360:(e,t,o)=>{var n=o(3243);e.exports=function(e,t,o){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}},3486:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=n?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(o,r,l):o[r]=e[r]}o.default=e,t&&t.set(e,o);return o}(o(6540)),r=c(o(5556)),l=c(o(1578)),a=c(o(4525)),i=c(o(2444)),s=c(o(7932));function c(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function m(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach(function(t){_(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var o=[],n=!0,r=!1,l=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done)&&(o.push(a.value),!t||o.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw l}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(o);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function g(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e){return function(){var t,o=y(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var n=y(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return k(e)}(this,t)}}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function _(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var w={},q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(u,e);var t,o,r,c=h(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),_(k(t=c.call(this,e)),"storeInputReference",function(e){null!==e&&(t.input=e);var o=t.props.inputProps.ref;o&&("function"==typeof o?o(e):"object"===f(o)&&Object.prototype.hasOwnProperty.call(o,"current")&&(o.current=e))}),_(k(t),"storeItemsContainerReference",function(e){null!==e&&(t.itemsContainer=e)}),_(k(t),"onHighlightedItemChange",function(e){t.highlightedItem=e}),_(k(t),"getItemId",function(e,o){if(null===o)return null;var n=t.props.id,r=null===e?"":"section-".concat(e);return"react-autowhatever-".concat(n,"-").concat(r,"-item-").concat(o)}),_(k(t),"onFocus",function(e){var o=t.props.inputProps;t.setState({isInputFocused:!0}),o.onFocus&&o.onFocus(e)}),_(k(t),"onBlur",function(e){var o=t.props.inputProps;t.setState({isInputFocused:!1}),o.onBlur&&o.onBlur(e)}),_(k(t),"onKeyDown",function(e){var o=t.props,n=o.inputProps,r=o.highlightedSectionIndex,l=o.highlightedItemIndex,a=e.keyCode;switch(a){case 40:case 38:var i=40===a?"next":"prev",s=b(t.sectionIterator[i]([r,l]),2),c=s[0],u=s[1];n.onKeyDown(e,{newHighlightedSectionIndex:c,newHighlightedItemIndex:u});break;default:n.onKeyDown(e,{highlightedSectionIndex:r,highlightedItemIndex:l})}}),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return t=u,(o=[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map(function(t){return e.getSectionItems(t)}),this.sectionsLengths=this.sectionsItems.map(function(e){return e.length}),this.allSectionsAreEmpty=this.sectionsLengths.every(function(e){return 0===e}))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,l.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,a.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,o=this.props,r=o.id,l=o.items,a=o.renderItem,c=o.renderItemData,u=o.renderSectionTitle,p=o.highlightedSectionIndex,m=o.highlightedItemIndex,b=o.itemProps;return l.map(function(o,l){var d="react-autowhatever-".concat(r,"-"),f="".concat(d,"section-").concat(l,"-"),g=0===l;return n.default.createElement("div",t("".concat(f,"container"),"sectionContainer",g&&"sectionContainerFirst"),n.default.createElement(i.default,{section:o,renderSectionTitle:u,theme:t,sectionKeyPrefix:f}),n.default.createElement(s.default,{items:e.sectionsItems[l],itemProps:b,renderItem:a,renderItemData:c,sectionIndex:l,highlightedItemIndex:p===l?m:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:d,ref:e.storeItemsListReference}))})}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,o=this.props,r=o.id,l=o.renderItem,a=o.renderItemData,i=o.highlightedSectionIndex,c=o.highlightedItemIndex,u=o.itemProps;return n.default.createElement(s.default,{items:e,itemProps:u,renderItem:l,renderItemData:a,highlightedItemIndex:null===i?c:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-".concat(r,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,o=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,n=t.scrollTop;o<n?n=o:o+e.offsetHeight>n+t.offsetHeight&&(n=o+e.offsetHeight-t.offsetHeight),n!==t.scrollTop&&(t.scrollTop=n)}}},{key:"render",value:function(){var e=this.theme,t=this.props,o=t.id,r=t.multiSection,l=t.renderInputComponent,a=t.renderItemsContainer,i=t.highlightedSectionIndex,s=t.highlightedItemIndex,c=this.state.isInputFocused,u=r?this.renderSections():this.renderItems(),p=null!==u,b=this.getItemId(i,s),d="react-autowhatever-".concat(o),f=m({role:"combobox","aria-haspopup":"listbox","aria-owns":d,"aria-expanded":p},e("react-autowhatever-".concat(o,"-container"),"container",p&&"containerOpen"),{},this.props.containerProps),g=l(m({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":d,"aria-activedescendant":b},e("react-autowhatever-".concat(o,"-input"),"input",p&&"inputOpen",c&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),h=a({containerProps:m({id:d,role:"listbox"},e("react-autowhatever-".concat(o,"-items-container"),"itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:u});return n.default.createElement("div",f,g,h)}}])&&g(t.prototype,o),r&&g(t,r),u}(n.Component);t.default=q,_(q,"propTypes",{id:r.default.string,multiSection:r.default.bool,renderInputComponent:r.default.func,renderItemsContainer:r.default.func,items:r.default.array.isRequired,renderItem:r.default.func,renderItemData:r.default.object,renderSectionTitle:r.default.func,getSectionItems:r.default.func,containerProps:r.default.object,inputProps:r.default.object,itemProps:r.default.oneOfType([r.default.object,r.default.func]),highlightedSectionIndex:r.default.number,highlightedItemIndex:r.default.number,theme:r.default.oneOfType([r.default.object,r.default.array])}),_(q,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:function(e){return n.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,o=e.children;return n.default.createElement("div",t,o)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:w,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:w,inputProps:w,itemProps:w,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}})},3488:e=>{e.exports=function(e){return e}},3656:e=>{e.exports=function(){return!1}},3675:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function o(e){var o=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(e))),o.filter(function(o){return t.call(e,o)})}e.exports=Object.assign||function(e,t){for(var n,r,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){n=arguments[a],r=o(Object(n));for(var i=0;i<r.length;i++)l[r[i]]=n[r[i]]}return l}},3693:(e,t,o)=>{var n=o(4894),r=o(346);e.exports=function(e){return r(e)&&n(e)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3912:(e,t,o)=>{var n=o(1074),r=o(9698),l=o(2054);e.exports=function(e){return r(e)?l(e):n(e)}},4058:(e,t,o)=>{var n=o(4792),r=o(5539)(function(e,t,o){return t=t.toLowerCase(),e+(o?n(t):t)});e.exports=r},4248:e=>{e.exports=function(e,t){for(var o=-1,n=null==e?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}},4335:e=>{e.exports=function(e,t){return function(o){return e(t(o))}}},4525:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,r=!1,l=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done)&&(o.push(a.value),!t||o.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&i.return&&i.return()}finally{if(r)throw l}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}var l,a=o(3675),i=(l=a)&&l.__esModule?l:{default:l},s=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],o=n(t,2),l=o[0],a=o[1];return function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];var c=o.map(function(e){return l[e]}).filter(s);return"string"==typeof c[0]||"function"==typeof a?{key:e,className:a?a.apply(void 0,r(c)):c.join(" ")}:{key:e,style:i.default.apply(void 0,[{}].concat(r(c)))}}},e.exports=t.default},4739:(e,t,o)=>{var n=o(6025);e.exports=function(e){var t=this.__data__,o=n(t,e);return o<0?void 0:t[o][1]}},4792:(e,t,o)=>{var n=o(3222),r=o(5808);e.exports=function(e){return r(n(e).toLowerCase())}},4840:(e,t,o)=>{var n="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g;e.exports=n},4894:(e,t,o)=>{var n=o(1882),r=o(294);e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},4974:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},5056:(e,t,o)=>{"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},5072:e=>{"use strict";var t=[];function o(e){for(var o=-1,n=0;n<t.length;n++)if(t[n].identifier===e){o=n;break}return o}function n(e,n){for(var l={},a=[],i=0;i<e.length;i++){var s=e[i],c=n.base?s[0]+n.base:s[0],u=l[c]||0,p="".concat(c," ").concat(u);l[c]=u+1;var m=o(p),b={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==m)t[m].references++,t[m].updater(b);else{var d=r(b,n);n.byIndex=i,t.splice(i,0,{identifier:p,updater:d,references:1})}a.push(p)}return a}function r(e,t){var o=t.domAPI(t);o.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;o.update(e=t)}else o.remove()}}e.exports=function(e,r){var l=n(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<l.length;a++){var i=o(l[a]);t[i].references--}for(var s=n(e,r),c=0;c<l.length;c++){var u=o(l[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}l=s}}},5160:e=>{e.exports=function(e,t,o){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(o=o>r?r:o)<0&&(o+=r),r=t>o?0:o-t>>>0,t>>>=0;for(var l=Array(r);++n<r;)l[n]=e[n+t];return l}},5250:(e,t,o)=>{var n=o(7217),r=o(7805),l=o(6649),a=o(2824),i=o(3805),s=o(7241),c=o(4974);e.exports=function e(t,o,u,p,m){t!==o&&l(o,function(l,s){if(m||(m=new n),i(l))a(t,o,s,u,e,p,m);else{var b=p?p(c(t,s),l,s+"",t,o,m):void 0;void 0===b&&(b=l),r(t,s,b)}},s)}},5287:(e,t)=>{"use strict";var o=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function h(e,t,o){this.props=e,this.context=t,this.refs=g,this.updater=o||d}function k(){}function y(e,t,o){this.props=e,this.context=t,this.refs=g,this.updater=o||d}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=h.prototype;var v=y.prototype=new k;v.constructor=y,f(v,h.prototype),v.isPureReactComponent=!0;var _=Array.isArray,w=Object.prototype.hasOwnProperty,q={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,l={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!S.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(1===s)l.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];l.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===l[r]&&(l[r]=s[r]);return{$$typeof:o,type:e,key:a,ref:i,props:l,_owner:q.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var I=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function E(e,t,r,l,a){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case n:s=!0}}if(s)return a=a(s=e),e=""===l?"."+C(s,0):l,_(a)?(r="",null!=e&&(r=e.replace(I,"$&/")+"/"),E(a,t,r,"",function(e){return e})):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(I,"$&/")+"/")+e)),t.push(a)),1;if(s=0,l=""===l?".":l+":",_(e))for(var c=0;c<e.length;c++){var u=l+C(i=e[c],c);s+=E(i,t,r,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=b&&e[b]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(i=e.next()).done;)s+=E(i=i.value,t,r,u=l+C(i,c++),a);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function T(e,t,o){if(null==e)return e;var n=[],r=0;return E(e,n,"","",function(e){return t.call(o,e,r++)}),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},B={transition:null},N={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:B,ReactCurrentOwner:q};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,o){T(e,function(){t.apply(this,arguments)},o)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=h,t.Fragment=r,t.Profiler=a,t.PureComponent=y,t.StrictMode=l,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.act=D,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=f({},e.props),l=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=q.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)w.call(t,c)&&!S.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:o,type:e.type,key:l,ref:a,props:r,_owner:i}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:m,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=B.transition;B.transition={};try{e()}finally{B.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,o){return O.current.useImperativeHandle(e,t,o)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,o){return O.current.useReducer(e,t,o)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,o){return O.current.useSyncExternalStore(e,t,o)},t.useTransition=function(){return O.current.useTransition()},t.version="18.3.1"},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5364:(e,t,o)=>{var n=o(5250),r=o(999)(function(e,t,o){n(e,t,o)});e.exports=r},5434:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},5527:e=>{e.exports=function(){return!1}},5529:(e,t,o)=>{var n=o(9344),r=o(8879),l=o(5527);e.exports=function(e){return"function"!=typeof e.constructor||l(e)?{}:n(r(e))}},5539:(e,t,o)=>{var n=o(882),r=o(828),l=o(6645),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(l(r(t).replace(a,"")),e,"")}}},5556:(e,t,o)=>{e.exports=o(2694)()},5808:(e,t,o)=>{var n=o(2507)("toUpperCase");e.exports=n},5861:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5911:(e,t,o)=>{var n=o(8859),r=o(4248),l=o(9219);e.exports=function(e,t,o,a,i,s){var c=1&o,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var m=s.get(e),b=s.get(t);if(m&&b)return m==t&&b==e;var d=-1,f=!0,g=2&o?new n:void 0;for(s.set(e,t),s.set(t,e);++d<u;){var h=e[d],k=t[d];if(a)var y=c?a(k,h,d,t,e,s):a(h,k,d,e,t,s);if(void 0!==y){if(y)continue;f=!1;break}if(g){if(!r(t,function(e,t){if(!l(g,t)&&(h===e||i(h,e,o,a,s)))return g.push(t)})){f=!1;break}}else if(h!==k&&!i(h,k,o,a,s)){f=!1;break}}return s.delete(e),s.delete(t),f}},6025:(e,t,o)=>{var n=o(5288);e.exports=function(e,t){for(var o=e.length;o--;)if(n(e[o][0],t))return o;return-1}},6110:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},6131:e=>{e.exports=function(e,t,o){for(var n=o-1,r=e.length;++n<r;)if(e[n]===t)return n;return-1}},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o}).join("")},t.i=function(e,o,n,r,l){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&a[u[0]]||(void 0!==l&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=l),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},6449:e=>{var t=Array.isArray;e.exports=t},6462:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0;t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};t.mapToAutowhateverTheme=function(e){var t={};for(var o in e)switch(o){case"suggestionsContainer":t.itemsContainer=e[o];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[o];break;case"suggestion":t.item=e[o];break;case"suggestionFirst":t.itemFirst=e[o];break;case"suggestionHighlighted":t.itemHighlighted=e[o];break;case"suggestionsList":t.itemsList=e[o];break;default:t[o]=e[o]}return t}},6540:(e,t,o)=>{"use strict";e.exports=o(5287)},6547:(e,t,o)=>{var n=o(3360),r=o(5288),l=Object.prototype.hasOwnProperty;e.exports=function(e,t,o){var a=e[t];l.call(e,t)&&r(a,o)&&(void 0!==o||t in e)||n(e,t,o)}},6645:(e,t,o)=>{var n=o(1733),r=o(5434),l=o(3222),a=o(2225);e.exports=function(e,t,o){return e=l(e),void 0===(t=o?void 0:t)?r(e)?a(e):n(e):e.match(t)||[]}},6649:(e,t,o)=>{var n=o(3221)();e.exports=n},6757:(e,t,o)=>{var n=o(1033),r=Math.max;e.exports=function(e,t,o){return t=r(void 0===t?e.length-1:t,0),function(){for(var l=arguments,a=-1,i=r(l.length-t,0),s=Array(i);++a<i;)s[a]=l[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=l[a];return c[t]=o(s),n(e,this,c)}}},6800:e=>{e.exports=function(){return!1}},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=a(e,l(o)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)n.call(e,o)&&e[o]&&(t=a(t,o));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},7068:(e,t,o)=>{var n=o(7217),r=o(5911),l=o(1986),a=o(689),i=o(5861),s=o(6449),c=o(3656),u=o(7167),p="[object Arguments]",m="[object Array]",b="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,o,f,g,h){var k=s(e),y=s(t),v=k?m:i(e),_=y?m:i(t),w=(v=v==p?b:v)==b,q=(_=_==p?b:_)==b,S=v==_;if(S&&c(e)){if(!c(t))return!1;k=!0,w=!1}if(S&&!w)return h||(h=new n),k||u(e)?r(e,t,o,f,g,h):l(e,t,v,o,f,g,h);if(!(1&o)){var A=w&&d.call(e,"__wrapped__"),x=q&&d.call(t,"__wrapped__");if(A||x){var I=A?e.value():e,C=x?t.value():t;return h||(h=new n),g(I,C,o,f,h)}}return!!S&&(h||(h=new n),a(e,t,o,f,g,h))}},7167:e=>{e.exports=function(){return!1}},7217:(e,t,o)=>{var n=o(3702),r=o(80),l=o(4739),a=o(8655),i=o(1175);function s(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=l,s.prototype.has=a,s.prototype.set=i,e.exports=s},7241:e=>{e.exports=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}},7424:(e,t,o)=>{"use strict";t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=n?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(o,r,l):o[r]=e[r]}o.default=e,t&&t.set(e,o);return o}(o(6540)),r=s(o(5556)),l=s(o(9321)),a=s(o(3486)),i=o(6462);function s(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function m(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach(function(t){k(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function b(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e){return function(){var t,o=g(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var n=g(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return f(e)}(this,t)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function k(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var y=function(){return!0},v="suggestions-revealed",_="input-focused",w="input-changed",q="escape-pressed",S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,o,r,s=d(c);function c(e){var t,o=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),k(f(t=s.call(this)),"onDocumentMouseDown",function(e){t.justClickedOnSuggestionsContainer=!1;for(var o=e.detail&&e.detail.target||e.target;null!==o&&o!==document;){if(o.getAttribute&&null!==o.getAttribute("data-suggestion-index"))return;if(o===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);o=o.parentNode}}),k(f(t),"storeAutowhateverRef",function(e){null!==e&&(t.autowhatever=e)}),k(f(t),"onSuggestionMouseEnter",function(e,o){var n=o.sectionIndex,r=o.itemIndex;t.updateHighlightedSuggestion(n,r),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout(function(){t.justMouseEntered=!1})}),k(f(t),"highlightFirstSuggestion",function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)}),k(f(t),"onDocumentMouseUp",function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null}),k(f(t),"onSuggestionMouseDown",function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)}),k(f(t),"onSuggestionsClearRequested",function(){var e=t.props.onSuggestionsClearRequested;e&&e()}),k(f(t),"onSuggestionSelected",function(e,o){var n=t.props,r=n.alwaysRenderSuggestions,l=n.onSuggestionSelected,a=n.onSuggestionsFetchRequested;l&&l(e,o);var i=t.props.shouldKeepSuggestionsOnSelect(o.suggestion);r||i?a({value:o.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()}),k(f(t),"onSuggestionClick",function(e){var o=t.props,n=o.alwaysRenderSuggestions,r=o.focusInputOnSuggestionClick,l=t.getSuggestionIndices(t.findSuggestionElement(e.target)),a=l.sectionIndex,i=l.suggestionIndex,s=t.getSuggestion(a,i),c=t.props.getSuggestionValue(s);t.maybeCallOnChange(e,c,"click"),t.onSuggestionSelected(e,{suggestion:s,suggestionValue:c,suggestionIndex:i,sectionIndex:a,method:"click"});var u=t.props.shouldKeepSuggestionsOnSelect(s);n||u||t.closeSuggestions(),!0===r?t.input.focus():t.onBlur(),setTimeout(function(){t.justSelectedSuggestion=!1})}),k(f(t),"onBlur",function(){var e=t.props,o=e.inputProps,n=e.shouldRenderSuggestions,r=o.value,l=o.onBlur,a=t.getHighlightedSuggestion(),i=n(r,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!i}),l&&l(t.blurEvent,{highlightedSuggestion:a})}),k(f(t),"onSuggestionMouseLeave",function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)}),k(f(t),"onSuggestionTouchStart",function(){t.justSelectedSuggestion=!0}),k(f(t),"onSuggestionTouchMove",function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()}),k(f(t),"itemProps",function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}}),k(f(t),"renderSuggestionsContainer",function(e){var o=e.containerProps,n=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:o,children:n,query:t.getQuery()})}),t.state={isFocused:!1,isCollapsed:!o,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return t=c,o=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,l.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,n=o.suggestions,r=o.onSuggestionHighlighted,a=o.highlightFirstSuggestion;if(!(0,l.default)(n,e.suggestions)&&n.length>0&&a)this.highlightFirstSuggestion();else if(r){var i=this.getHighlightedSuggestion();i!=t.highlightedSuggestion&&r({suggestion:i})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,o){var n=this;this.setState(function(r){var l=r.valueBeforeUpDown;return null===t?l=null:null===l&&void 0!==o&&(l=o),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:n.getSuggestion(e,t),valueBeforeUpDown:l}})}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState(function(t){var o=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:o}})}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var o=this.props,n=o.suggestions,r=o.multiSection,l=o.getSectionSuggestions;return r?l(n[e])[t]:n[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,o=e.highlightedSuggestionIndex;return null===o?null:this.getSuggestion(t,o)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),o=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(o,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,o){var n=this.props.inputProps,r=n.value,l=n.onChange;t!==r&&l(e,{newValue:t,method:o})}},{key:"willRenderSuggestions",value:function(e,t){var o=e.suggestions,n=e.inputProps,r=e.shouldRenderSuggestions,l=n.value;return o.length>0&&r(l,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,o=t.suggestions,r=t.renderInputComponent,l=t.onSuggestionsFetchRequested,s=t.renderSuggestion,c=t.inputProps,u=t.multiSection,p=t.renderSectionTitle,b=t.id,d=t.getSectionSuggestions,f=t.theme,g=t.getSuggestionValue,h=t.alwaysRenderSuggestions,k=t.highlightFirstSuggestion,S=t.containerProps,A=this.state,x=A.isFocused,I=A.isCollapsed,C=A.highlightedSectionIndex,E=A.highlightedSuggestionIndex,T=A.valueBeforeUpDown,P=h?y:this.props.shouldRenderSuggestions,O=c.value,B=c.onFocus,N=c.onKeyDown,D=this.willRenderSuggestions(this.props,"render"),R=h||x&&!I&&D,M=R?o:[],L=m({},c,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var o=P(O,_);e.setState({isFocused:!0,isCollapsed:!o}),B&&B(t),o&&l({value:O,reason:_})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var o=t.target.value,n=P(o,w);e.maybeCallOnChange(t,o,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(m({},k?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!n})),n?l({value:o,reason:w}):e.onSuggestionsClearRequested()},onKeyDown:function(t,n){var r=t.keyCode;switch(r){case 40:case 38:if(I)P(O,v)&&(l({value:O,reason:v}),e.revealSuggestions(),t.preventDefault());else if(o.length>0){var a,i=n.newHighlightedSectionIndex,s=n.newHighlightedItemIndex;a=null===s?null===T?O:T:e.getSuggestionValueByIndex(i,s),e.updateHighlightedSuggestion(i,s,O),e.maybeCallOnChange(t,a,40===r?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout(function(){e.justPressedUpDown=!1});break;case 13:if(229===t.keyCode)break;var c=e.getHighlightedSuggestion();if(R&&!h&&e.closeSuggestions(),null!=c){t.preventDefault();var u=g(c);e.maybeCallOnChange(t,u,"enter"),e.onSuggestionSelected(t,{suggestion:c,suggestionValue:u,suggestionIndex:E,sectionIndex:C,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout(function(){e.justSelectedSuggestion=!1})}break;case 27:R&&t.preventDefault();var p=R&&!h;null===T?p||(e.maybeCallOnChange(t,"","escape"),P("",q)?l({value:"",reason:q}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,T,"escape"),p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}N&&N(t)}}),j={query:this.getQuery()};return n.default.createElement(a.default,{multiSection:u,items:M,renderInputComponent:r,renderItemsContainer:this.renderSuggestionsContainer,renderItem:s,renderItemData:j,renderSectionTitle:p,getSectionItems:d,highlightedSectionIndex:C,highlightedItemIndex:E,containerProps:S,inputProps:L,itemProps:this.itemProps,theme:(0,i.mapToAutowhateverTheme)(f),id:b,ref:this.storeAutowhateverRef})}}],o&&b(t.prototype,o),r&&b(t,r),c}(n.Component);t.default=S,k(S,"propTypes",{suggestions:r.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var o=e[t];if("function"!=typeof o)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var o=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof o)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:r.default.func,onSuggestionSelected:r.default.func,onSuggestionHighlighted:r.default.func,renderInputComponent:r.default.func,renderSuggestionsContainer:r.default.func,getSuggestionValue:r.default.func.isRequired,renderSuggestion:r.default.func.isRequired,inputProps:function(e,t){var o=e[t];if(!o)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(o,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(o,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:r.default.func,alwaysRenderSuggestions:r.default.bool,multiSection:r.default.bool,renderSectionTitle:function(e,t){var o=e[t];if(!0===e.multiSection&&"function"!=typeof o)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var o=e[t];if(!0===e.multiSection&&"function"!=typeof o)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:r.default.bool,highlightFirstSuggestion:r.default.bool,theme:r.default.object,id:r.default.string,containerProps:r.default.object}),k(S,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,o=e.children;return n.default.createElement("div",t,o)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:i.defaultTheme,id:"1",containerProps:{}})},7556:e=>{e.exports=function(e){return e}},7659:e=>{"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},7805:(e,t,o)=>{var n=o(3360),r=o(5288);e.exports=function(e,t,o){(void 0!==o&&!r(e[t],o)||void 0===o&&!(t in e))&&n(e,t,o)}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var r=void 0!==o.layer;r&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,r&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var l=o.sourceMap;l&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(l))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7828:(e,t,o)=>{var n=o(9325).Uint8Array;e.exports=n},7932:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=n?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(o,r,l):o[r]=e[r]}o.default=e,t&&t.set(e,o);return o}(o(6540)),r=i(o(5556)),l=i(o(1572)),a=i(o(1438));function i(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},u.apply(this,arguments)}function p(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function m(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e){return function(){var t,o=f(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var n=f(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return d(e)}(this,t)}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function h(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,e);var t,o,r,i=b(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return h(d(e=i.call.apply(i,[this].concat(o))),"storeHighlightedItemReference",function(t){e.props.onHighlightedItemChange(null===t?null:t.item)}),e}return t=s,o=[{key:"shouldComponentUpdate",value:function(e){return(0,a.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,o=t.items,r=t.itemProps,a=t.renderItem,i=t.renderItemData,s=t.sectionIndex,c=t.highlightedItemIndex,m=t.getItemId,b=t.theme,d=t.keyPrefix,f=null===s?d:"".concat(d,"section-").concat(s,"-"),g="function"==typeof r;return n.default.createElement("ul",u({role:"listbox"},b("".concat(f,"items-list"),"itemsList")),o.map(function(t,o){var d=0===o,k=o===c,y="".concat(f,"item-").concat(o),v=g?r({sectionIndex:s,itemIndex:o}):r,_=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach(function(t){h(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({id:m(s,o),"aria-selected":k},b(y,"item",d&&"itemFirst",k&&"itemHighlighted"),{},v);return k&&(_.ref=e.storeHighlightedItemReference),n.default.createElement(l.default,u({},_,{sectionIndex:s,isHighlighted:k,itemIndex:o,item:t,renderItem:a,renderItemData:i}))}))}}],o&&m(t.prototype,o),r&&m(t,r),s}(n.Component);t.default=k,h(k,"propTypes",{items:r.default.array.isRequired,itemProps:r.default.oneOfType([r.default.object,r.default.func]),renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,sectionIndex:r.default.number,highlightedItemIndex:r.default.number,onHighlightedItemChange:r.default.func.isRequired,getItemId:r.default.func.isRequired,theme:r.default.func.isRequired,keyPrefix:r.default.string.isRequired}),h(k,"defaultProps",{sectionIndex:null})},8655:(e,t,o)=>{var n=o(6025);e.exports=function(e){return n(this.__data__,e)>-1}},8754:(e,t,o)=>{var n=o(5160);e.exports=function(e,t,o){var r=e.length;return o=void 0===o?r:o,!t&&o>=r?e:n(e,t,o)}},8859:(e,t,o)=>{var n=o(6449);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return n(e)?e:[e]}},8879:(e,t,o)=>{var n=o(4335)(Object.getPrototypeOf,Object);e.exports=n},9e3:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(1601),r=o.n(n),l=o(6314),a=o.n(l)()(r());a.push([e.id,".qi-preview-screen-mobile .qi-block-blog-list.qodef-item-layout--side-image .qodef-e-inner{flex-direction:column;align-items:flex-start}.qodef-reverse-columns.qi-preview-screen-mobile .qi-block-blog-list.qodef-item-layout--side-image .qodef-e-inner{flex-direction:column}.qi-preview-screen-mobile .qi-block-blog-list.qodef-item-layout--side-image .qodef-e-media{width:100%}.qi-preview-screen-mobile .qi-block-blog-list.qodef-item-layout--side-image .qodef-e-content{padding:20px 0}",""]);const i=a},9066:(e,t,o)=>{"use strict";o.d(t,{A:()=>r}),document.addEventListener("DOMContentLoaded",function(){n.init()});const n={init:function(){this.holder=document.querySelectorAll(".qi-block-button"),this.holder.length&&[...this.holder].map(e=>{n.initItem(e)})},getRealCurrentItem:function(e){return"string"==typeof e&&""!==e&&(e=qiBlocksEditor.qodefGetCurrentBlockElement.get(e)),e},initItem:function(e){if(!(e=n.getRealCurrentItem(e)))return;const t=e.querySelector(".qodef-m-icon");if(t){let o="auto";e.classList.contains("qodef-type--icon-boxed")&&(o=parseInt(window.getComputedStyle(e).getPropertyValue("height"),10)+"px"),t.style.width=o}}},r=n},9219:(e,t,o)=>{var n=o(6131);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},9302:(e,t,o)=>{var n=o(3488),r=o(6757),l=o(2865);e.exports=function(e,t){return l(r(e,t,n),e+"")}},9321:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var o=e.length;if(t.length!==o)return!1;for(var n=0;n<o;n++)if(e[n]!==t[n])return!1;return!0}},9325:(e,t,o)=>{var n=o(4840),r="object"==typeof self&&self&&self.Object===Object&&self,l=n||r||Function("return this")();e.exports=l},9344:(e,t,o)=>{var n=o(3805),r=Object.create,l=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();e.exports=l},9653:(e,t,o)=>{var n=o(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},9698:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},9884:(e,t,o)=>{var n=o(1791),r=o(7241);e.exports=function(e){return n(e,r(e))}}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var l=t[n]={id:n,loaded:!1,exports:{}};return e[n](l,l.exports,o),l.loaded=!0,l.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.nc=void 0,(()=>{"use strict";const e=wp.i18n,t=wp.blocks;var n=o(2404),r=o.n(n),l=o(5364),a=o.n(l);const i=wp.blockEditor,s=wp.compose,c=wp.element,u=wp.components;var p=o(6942),m=o.n(p);const b=wp.apiFetch;var d,f=o.n(b),g=o(6540);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},h.apply(null,arguments)}const k=e=>g.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),d||(d=g.createElement("path",{d:"M13 18h2c.6 0 1 .4 1 1s-.4 1-1 1H9c-.6 0-1-.4-1-1s.4-1 1-1h2v-2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2h-7zM4 6v8h16V6z"})));var y;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},v.apply(null,arguments)}const _=e=>g.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),y||(y=g.createElement("path",{d:"M6 4v15h12V4zm0-2h12c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2"})));var w;function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},q.apply(null,arguments)}const S=e=>g.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 24 24"},e),w||(w=g.createElement("path",{d:"M8 2h8c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m0 2v15h8V4z"}))),A="desktop",x={desktop:{label:(0,e.__)("Desktop","qi-blocks"),icon:wp.element.createElement(k,null)},tablet:{label:(0,e.__)("Tablet","qi-blocks"),icon:wp.element.createElement(_,null)},mobile:{label:(0,e.__)("Mobile","qi-blocks"),icon:wp.element.createElement(S,null)}};let I=A;const C=()=>I;var E=o(4058),T=o.n(E);const P=wp.hooks,O=wp.data,B=e=>{const t={...e},{blockAttributeKey:o,blockAttributes:n,setAttributes:r,repeater:l,repeaterItemIndex:a,repeaterItemKey:i,repeaterSetAttributes:s,repeaterGetAttributes:c}=t;return t.getAttributeValue=()=>{let e=n[o];return l&&(e=c(i,a)),e||!1},t.setAttributeValue=e=>{l?s(i,e,a):r({[o]:e})},wp.element.createElement("div",{className:"qodef-on-off-option"},wp.element.createElement(u.ToggleControl,{label:t.label,help:t.help,checked:t.getAttributeValue(),onChange:()=>t.setAttributeValue(!t.getAttributeValue())}))};B.defaultProps={label:(0,e.__)("Show","qi-blocks"),help:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const N=B,D=[{classSuffix:"desktop",label:(0,e.__)("Hide On Desktop","qi-blocks"),blockAttributeKey:"hideOnDesktop"},{classSuffix:"tablet",label:(0,e.__)("Hide On Tablet","qi-blocks"),blockAttributeKey:"hideOnTablet"},{classSuffix:"mobile",label:(0,e.__)("Hide On Mobile","qi-blocks"),blockAttributeKey:"hideOnMobile"}],R=e=>{const t={...e},{label:o,description:n,blockAttributeKeys:r,blockAttributes:l,setAttributes:a}=t;return wp.element.createElement("div",{className:"qodef-visibility-group-option"},o&&wp.element.createElement("label",{className:"qodef-option-label"},o),n&&wp.element.createElement("p",{className:"qodef-option-description"},n),r.map(e=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(N,{label:e.label,blockAttributeKey:e.blockAttributeKey,blockAttributes:l,setAttributes:a}))))};R.defaultProps={label:(0,e.__)("Visibility","qi-blocks"),description:(0,e.__)("Responsive visibility will take effect only on preview or live page, and not while editing in Gutenberg.","qi-blocks"),blockAttributeKeys:D,blockAttributes:{},setAttributes:()=>{}};const M=()=>({hideOnDesktop:{type:"boolean",default:!1},hideOnTablet:{type:"boolean",default:!1},hideOnMobile:{type:"boolean",default:!1}}),L=e=>{const{attrNameTemplate:t,attrName:o}=e,n=e=>re(t,o,e),r=!me(e,"all")||(e.allowUnitControl??!0),l=me(e,"all")&&e.disableDirections||[];let a={};return["Top","Right","Bottom","Left"].map(e=>{l.includes(e)||(a[n(e)]={type:"number",default:""},a[n(e+"Tablet")]={type:"number",default:""},a[n(e+"Mobile")]={type:"number",default:""},r&&(a[n(`${e}Decimal`)]={type:"number",default:""},a[n(`${e}DecimalTablet`)]={type:"number",default:""},a[n(`${e}DecimalMobile`)]={type:"number",default:""}))}),a[n("Unit")]={type:"string",default:"px"},a[n("UnitTablet")]={type:"string",default:"px"},a[n("UnitMobile")]={type:"string",default:"px"},a};L.defaultProps={attrNameTemplate:"",attrName:"",allowUnitControl:!0};const j=L,V=e=>{const{blockAttributeKey:t}=e,o=!!me(e,"all")&&(e.allowScreens??!1),n=!me(e,"all")||(e.allowUnits??!0),r=me(e,"all")&&e.optionType||"integer",l=me(e,"all")&&e.defaultValue||"",a="decimal"===r?l:"";let i={};return"integer"===r&&(i[t]={type:"number",default:l}),i[re(t,"Unit")]={type:"string",default:"px"},(n||"decimal"===r)&&(i[re(t,"Decimal")]={type:"number",default:a}),o&&(i[re(t,"Tablet")]={type:"number",default:""},i[re(t,"Mobile")]={type:"number",default:""},i[re(t,"UnitTablet")]={type:"string",default:"px"},i[re(t,"UnitMobile")]={type:"string",default:"px"},n&&(i[re(t,"DecimalTablet")]={type:"number",default:""},i[re(t,"DecimalMobile")]={type:"number",default:""})),i};V.defaultProps={allowScreens:!1,allowUnits:!0};const $=V,U=e=>{const t=me(e,"all")&&e.attrNameTemplate||"",o=me(e,"all")&&e.attrName||"Background",n=e=>re(t,o+e),r=$({blockAttributeKey:n("XPosition"),allowScreens:!0}),l=$({blockAttributeKey:n("YPosition"),allowScreens:!0}),a=$({blockAttributeKey:n("SizeWidth"),allowScreens:!0});return{[n("Image")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[n("ImageTablet")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[n("ImageMobile")]:{type:"object",default:{id:null,url:"",alt:"",caption:""}},[n("Position")]:{type:"string",default:""},[n("PositionTablet")]:{type:"string",default:""},[n("PositionMobile")]:{type:"string",default:""},...r,...l,[n("Attachment")]:{type:"string",default:""},[n("Repeat")]:{type:"string",default:""},[n("RepeatTablet")]:{type:"string",default:""},[n("RepeatMobile")]:{type:"string",default:""},[n("Size")]:{type:"string",default:""},[n("SizeTablet")]:{type:"string",default:""},[n("SizeMobile")]:{type:"string",default:""},...a}};U.defaultProps={attrNameTemplate:"",attrName:"Background"};const H=U,F=e=>{const t=me(e,"all")&&e.attrNameTemplate||"",o=e=>re(t,e),n=!!me(e,"all")&&(e.includeVideoBG??!1),r=H({attrNameTemplate:t});let l={[o("BackgroundType")]:{type:"string",default:""},[o("BackgroundColor")]:{type:"string",default:""},...r,[o("BackgroundGradientColor1")]:{type:"string",default:""},[o("BackgroundGradientLocation1")]:{type:"number",default:""},[o("BackgroundGradientColor2")]:{type:"string",default:""},[o("BackgroundGradientLocation2")]:{type:"number",default:""},[o("BackgroundGradientType")]:{type:"string",default:"linear"},[o("BackgroundGradientTypeAngle")]:{type:"number",default:""},[o("BackgroundGradientTypePosition")]:{type:"string",default:"center center"}};if(n){const e={[o("BackgroundVideoLink")]:{type:"object",default:{id:null,url:"",alt:""}},[o("BackgroundVideoStartTime")]:{type:"number",default:""},[o("BackgroundVideoEndTime")]:{type:"number",default:""},[o("BackgroundVideoStartTime")]:{type:"number",default:""},[o("BackgroundVideoPlayOnce")]:{type:"boolean",default:!1},[o("BackgroundVideoPlayOnMobile")]:{type:"boolean",default:!1},[o("BackgroundVideoFallbackImage")]:{type:"object",default:{id:null,url:"",alt:""}}};l={...l,...e}}return l};F.defaultProps={attrNameTemplate:"",includeVideoBG:!1};const z=F,K=e=>{const t=me(e,"all")&&e.attrNameTemplate||"",o=me(e,"all")&&e.attrName||"",n=me(e,"all")&&e.defaultValue||"",r=e=>re(t,o+e);return{[r("")]:{type:"string",default:n},[r("Tablet")]:{type:"string",default:""},[r("Mobile")]:{type:"string",default:""}}};K.defaultProps={attrNameTemplate:"",attrName:"",defaultValue:""};const G=K,W=e=>{const t=me(e,"all")&&e.attrNameTemplate||"",o=me(e,"all")&&e.disableWidthDirections||[],n=!me(e,"all")||(e.allowBorderColor??!0),r=!me(e,"all")||(e.allowBorderRadius??!0),l=e=>re(t,e),a=j({attrNameTemplate:t,attrName:"BorderWidth",disableDirections:o,allowUnitControl:!1}),i=n?{[l("BorderColor")]:{type:"string",default:""}}:{},s=r?j({attrNameTemplate:t,attrName:"BorderRadius"}):{};return{[l("BorderStyle")]:{type:"string",default:""},...i,...a,...s}};W.defaultProps={attrNameTemplate:"",allowBorderColor:!0,allowBorderRadius:!0};const Y=W,X=e=>{const t=me(e,"all")&&e.attrNameTemplate||"",o=e=>re(t,e);return{[o("BoxShadowColor")]:{type:"string",default:""},[o("BoxShadowHorizontal")]:{type:"number",default:""},[o("BoxShadowVertical")]:{type:"number",default:""},[o("BoxShadowBlur")]:{type:"number",default:""},[o("BoxShadowSpread")]:{type:"number",default:""},[o("BoxShadowPosition")]:{type:"string",default:""}}};X.defaultProps={attrNameTemplate:""};const Z=X,Q=e=>{const t=me(e,"all")&&e.excludePanels||[],o=me(e,"all")&&e.includePanels||[];let n=o&&o.length?o:J();const r=e=>re("",e);t&&t.length&&t.forEach(e=>{n.splice(n.indexOf(e),1)});let l={};const a=M();if(n.includes("advanced")){const e=j({attrName:r("Margin")}),t=j({attrName:r("Padding")});l={...l,...e,...t,[r("zIndex")]:{type:"number",default:""},[r("cssId")]:{type:"string",default:""},[r("cssClasses")]:{type:"string",default:""}}}if(n.includes("motion-effects")&&(l={...l,[r("EntranceAnimation")]:{type:"string",default:""},[r("EntranceAnimationDuration")]:{type:"string",default:"normal"},[r("EntranceAnimationDelay")]:{type:"number",default:""}}),n.includes("background")){const e=z({attrNameTemplate:"Advanced"});l={...l,...e}}if(n.includes("border")){const e=Y({attrNameTemplate:"Advanced"}),t=Z({attrNameTemplate:"Advanced"});l={...l,...e,...t}}if(n.includes("positioning")){const e=G({attrName:r("BlockWidth")}),t=$({blockAttributeKey:r("BlockCustomWidth"),allowScreens:!0}),o=$({blockAttributeKey:r("PositionHorizontalOffset"),allowScreens:!0}),n=$({blockAttributeKey:r("PositionVerticalOffset"),allowScreens:!0});l={...l,...e,...t,[r("BlockPosition")]:{type:"string",default:""},[r("PositionHorizontalOrientation")]:{type:"string",default:"left"},...o,[r("PositionVerticalOrientation")]:{type:"string",default:"top"},...n}}return n.includes("responsive")&&(l={...l,...a}),l};Q.defaultProps={excludePanels:[],includePanels:[]};const J=()=>["advanced","motion-effects","background","border","positioning","responsive"],ee=(e,t="")=>{const o=e=>re(t,e),n=[];return e[o("cssClasses")]&&n.push(e[o("cssClasses")]),void 0!==e[o("EntranceAnimation")]&&""!==e[o("EntranceAnimation")]&&(n.push("qodef-entrance-animation--on"),e[o("EntranceAnimationDuration")]&&n.push("qodef-animation-speed--"+e[o("EntranceAnimationDuration")])),e[o("BlockWidth")]&&n.push("qodef-width--"+e[o("BlockWidth")]),e[o("BlockWidthTablet")]&&n.push("qodef-width--tablet--"+e[o("BlockWidthTablet")]),e[o("BlockWidthMobile")]&&n.push("qodef-width--mobile--"+e[o("BlockWidthMobile")]),n.push((e=>{const t=[];return D.map(o=>{const n="qodef-hide-on--"+o.classSuffix,r=e[o.blockAttributeKey];t.includes(n)&&!r?t.filter(function(e){return e!==n}):!t.includes(n)&&r&&t.push(n)}),t.join(" ")})(e)),n.join(" ")},te=(e,t="")=>{let o={};const n=((e,t="")=>{const o=(e,o="")=>re(t,e,o),n={};return void 0!==e[o("EntranceAnimation")]&&""!==e[o("EntranceAnimation")]&&(n["data-animation"]=e[o("EntranceAnimation")]),"custom"!==e[o("BlockWidth")]&&"custom"!==e[o("BlockWidthTablet")]&&"custom"!==e[o("BlockWidthMobile")]||["","Tablet","Mobile"].forEach(t=>{const r=e[o("BlockCustomWidth",t)],l=e[o("BlockCustomWidthDecimal",t)],a=e[o("BlockCustomWidthUnit",t)];ce(a)&&r?n["data-width"+(t?"-"+t.toLowerCase():"")]=parseInt(r,10)+a:ue(a)&&l&&(n["data-width"+(t?"-"+t.toLowerCase():"")]=parseFloat(l)+a)}),n})(e,t);return n&&(o={...o,...n}),o},oe=(e,t,o=[])=>{if(!e)return"";let n=[`qi-block-${e}`,"qodef-block","qodef-m"];return me(t.attributes.className,"all")&&n.push(t.attributes.className),o&&(n=[...n,...o]),n.join(" ")},ne=(e,t="",o=[])=>{const n=e=>re(t,e);if(!e)return"";let r=[];return me(e[n("cssId")],"all")&&r.push(e[n("cssId")]),o&&(r=[...r,...o]),r.join(" ")},re=(t,o,n)=>(t=t||"",o=o||"",n=n||"",T()((0,e.sprintf)("%s%s%s",t,o,n))),le=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",ae=e=>e&&A!==e?le(e):"",ie=(e,t)=>{let o=e.desktop;return"mobile"===t&&(o={...o,...e.tablet}),{...o,...e[t]}},se=(e,t=!0)=>{let o="";return Object.entries(e).map(([e,n])=>{o+=`${e.replace(/([A-Z])/g,(e,t,o)=>(o>0?"-":"")+e.toLowerCase())}: ${n} ${t?"!important":""};`}),o},ce=e=>["px"].includes(e),ue=e=>["em","rem","%","vw","vh"].includes(e),pe=(e,t="integer")=>{let o="";return 0===e||"0"===e?o=0:e&&(o=parseInt(e,10),"decimal"===t&&(o=parseFloat(e))),o},me=(e,t="")=>{let o=void 0!==e&&""!==e;return"all"===t&&(o=void 0!==e&&e),o},be=e=>{let t="";return 0===e||"0"===e?t=0:e&&(t=e),t},de=(t,o=!0,n=[])=>{let r=[],l=[];if(t){switch(o&&(r=[{value:"",label:(0,e.__)("Default","qi-blocks")}]),t){case"no_yes":l=[{value:"no",label:(0,e.__)("No","qi-blocks")},{value:"yes",label:(0,e.__)("Yes","qi-blocks")}];break;case"yes_no":l=[{value:"yes",label:(0,e.__)("Yes","qi-blocks")},{value:"no",label:(0,e.__)("No","qi-blocks")}];break;case"link_target":l=[{value:"_self",label:(0,e.__)("Same Window","qi-blocks")},{value:"_blank",label:(0,e.__)("New Window","qi-blocks")}];break;case"column_gap":l=[{value:"huge",label:(0,e.__)("Huge (35)","qi-blocks")},{value:"large",label:(0,e.__)("Large (25)","qi-blocks")},{value:"medium",label:(0,e.__)("Medium (20)","qi-blocks")},{value:"normal",label:(0,e.__)("Normal (15)","qi-blocks")},{value:"small",label:(0,e.__)("Small (10)","qi-blocks")},{value:"tiny",label:(0,e.__)("Tiny (5)","qi-blocks")},{value:"no",label:(0,e.__)("No (0)","qi-blocks")}];break;case"columns_responsive":l=[{value:"predefined",label:(0,e.__)("Predefined","qi-blocks")},{value:"custom",label:(0,e.__)("Custom","qi-blocks")}];break;case"masonry_image_sizes":l=[{value:"square",label:(0,e.__)("Square","qi-blocks")},{value:"landscape",label:(0,e.__)("Landscape","qi-blocks")},{value:"portrait",label:(0,e.__)("Portrait","qi-blocks")},{value:"huge-square",label:(0,e.__)("Huge","qi-blocks")}];break;case"image_sizes":l=[{value:"full",label:(0,e.__)("Original","qi-blocks")},{value:"thumbnail",label:(0,e.__)("Thumbnail","qi-blocks")},{value:"medium",label:(0,e.__)("Medium","qi-blocks")},{value:"large",label:(0,e.__)("Large","qi-blocks")}];break;case"title_tag":l=[{value:"h1",label:(0,e.__)("H1","qi-blocks")},{value:"h2",label:(0,e.__)("H2","qi-blocks")},{value:"h3",label:(0,e.__)("H3","qi-blocks")},{value:"h4",label:(0,e.__)("H4","qi-blocks")},{value:"h5",label:(0,e.__)("H5","qi-blocks")},{value:"h6",label:(0,e.__)("H6","qi-blocks")},{value:"p",label:(0,e.__)("Paragraph","qi-blocks")}];break;case"font_weight":l=[{value:"normal",label:(0,e.__)("Normal","qi-blocks")},{value:"bold",label:(0,e.__)("Bold","qi-blocks")},{value:"100",label:(0,e.__)("Thin (100)","qi-blocks")},{value:"200",label:(0,e.__)("Extra Light (200)","qi-blocks")},{value:"300",label:(0,e.__)("Light (300)","qi-blocks")},{value:"400",label:(0,e.__)("Normal (400)","qi-blocks")},{value:"500",label:(0,e.__)("Medium (500)","qi-blocks")},{value:"600",label:(0,e.__)("Semi Bold (600)","qi-blocks")},{value:"700",label:(0,e.__)("Bold (700)","qi-blocks")},{value:"800",label:(0,e.__)("Extra Bold (800)","qi-blocks")},{value:"900",label:(0,e.__)("Black (900)","qi-blocks")}];break;case"text_transform":l=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"uppercase",label:(0,e.__)("Uppercase","qi-blocks")},{value:"lowercase",label:(0,e.__)("Lowercase","qi-blocks")},{value:"capitalize",label:(0,e.__)("Capitalize","qi-blocks")},{value:"normal",label:(0,e.__)("Normal","qi-blocks")}];break;case"font_style":l=[{value:"normal",label:(0,e.__)("Normal","qi-blocks")},{value:"italic",label:(0,e.__)("Italic","qi-blocks")},{value:"oblique",label:(0,e.__)("Oblique","qi-blocks")}];break;case"text_decoration":l=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"underline",label:(0,e.__)("Underline","qi-blocks")},{value:"overline",label:(0,e.__)("Overline","qi-blocks")},{value:"line-through",label:(0,e.__)("Line-Through","qi-blocks")}];break;case"background_position":l=[{value:"center center",label:(0,e.__)("Center Center","qi-blocks")},{value:"center left",label:(0,e.__)("Center Left","qi-blocks")},{value:"center right",label:(0,e.__)("Center Right","qi-blocks")},{value:"top center",label:(0,e.__)("Top Center","qi-blocks")},{value:"top left",label:(0,e.__)("Top Left","qi-blocks")},{value:"top right",label:(0,e.__)("Top Right","qi-blocks")},{value:"bottom center",label:(0,e.__)("Bottom Center","qi-blocks")},{value:"bottom left",label:(0,e.__)("Bottom Left","qi-blocks")},{value:"bottom right",label:(0,e.__)("Bottom Right","qi-blocks")}];break;case"background_attachment":l=[{value:"scroll",label:(0,e.__)("Scroll","qi-blocks")},{value:"fixed",label:(0,e.__)("Fixed","qi-blocks")}];break;case"background_repeat":l=[{value:"no-repeat",label:(0,e.__)("No-repeat","qi-blocks")},{value:"repeat",label:(0,e.__)("Repeat","qi-blocks")},{value:"repeat-x",label:(0,e.__)("Repeat-x","qi-blocks")},{value:"repeat-y",label:(0,e.__)("Repeat-y","qi-blocks")}];break;case"background_size":l=[{value:"auto",label:(0,e.__)("Auto","qi-blocks")},{value:"cover",label:(0,e.__)("Cover","qi-blocks")},{value:"contain",label:(0,e.__)("Contain","qi-blocks")}];break;case"horizontal_alignment":l=[{value:"left",label:(0,e.__)("Left","qi-blocks")},{value:"right",label:(0,e.__)("Right","qi-blocks")},{value:"center",label:(0,e.__)("Center","qi-blocks")}];break;case"vertical_alignment":l=[{value:"top",label:(0,e.__)("Top","qi-blocks")},{value:"middle",label:(0,e.__)("Middle","qi-blocks")},{value:"bottom",label:(0,e.__)("Bottom","qi-blocks")}];break;case"html_tag":l=[{value:"section",label:(0,e.__)("Section","qi-blocks")},{value:"div",label:(0,e.__)("Div","qi-blocks")},{value:"main",label:(0,e.__)("Main","qi-blocks")},{value:"article",label:(0,e.__)("Article","qi-blocks")},{value:"nav",label:(0,e.__)("Nav","qi-blocks")},{value:"footer",label:(0,e.__)("Footer","qi-blocks")},{value:"header",label:(0,e.__)("Header","qi-blocks")},{value:"aside",label:(0,e.__)("Aside","qi-blocks")}];break;case"appear_animation":l=[{value:"none",label:(0,e.__)("None","qi-blocks")},{value:"from-bottom",label:(0,e.__)("From Bottom","qi-blocks")},{value:"from-top",label:(0,e.__)("From Top","qi-blocks")},{value:"from-left",label:(0,e.__)("From Left","qi-blocks")},{value:"from-right",label:(0,e.__)("From Right","qi-blocks")},{value:"fade",label:(0,e.__)("Fade in","qi-blocks")}];break;case"appear_delay":l=[{value:"random",label:(0,e.__)("Random","qi-blocks")},{value:"ms",label:(0,e.__)("Set ms","qi-blocks")}];break;case"responsive_screens":l=[{value:"1024",label:(0,e.__)("Below 1024px","qi-blocks")},{value:"768",label:(0,e.__)("Below 768px","qi-blocks")},{value:"680",label:(0,e.__)("Below 680px","qi-blocks")},{value:"480",label:(0,e.__)("Below 480px","qi-blocks")}];break;case"order_by":l=[{value:"date",label:(0,e.__)("Date","qi-blocks")},{value:"id",label:(0,e.__)("ID","qi-blocks")},{value:"title",label:(0,e.__)("Title","qi-blocks")}];break;case"order":l=[{value:"desc",label:(0,e.__)("Descending","qi-blocks")},{value:"asc",label:(0,e.__)("Ascending","qi-blocks")}];break;case"border_style":l=[{value:"solid",label:(0,e.__)("Solid","qi-blocks")},{value:"dashed",label:(0,e.__)("Dashed","qi-blocks")},{value:"dotted",label:(0,e.__)("Dotted","qi-blocks")}]}r=[...r,...l],n&&(r=[...r,...n])}return(0,P.applyFilters)("qi-blocks-filter-options-pool",r)},fe=(e,t="",o={cssProp:"",value:""})=>{const{attributes:n,blockAttrName:r,cssProp:l}=e,a=me(e,"all")&&void 0!==e.direction&&e.direction?le(e.direction):"",i=!!me(e,"all")&&(e.customUnitValue??!1);let s={},c={},u={};return Object.entries(x).map(([e])=>{let p=ae(e),m="",b=r+a+p,d=r+a+"Decimal"+p,f=n[r+"Unit"+p];(me(n[b])||me(n[d]))&&(ce(f)&&me(n[b])&&!i?m=pe(n[b])+f:ue(f)&&me(n[d])&&!i?m=pe(n[d],"decimal")+f:""!==n[b]&&(m=n[b]));const g=e=>{let o=e;if(t.includes("%s")){const n=t.split("%s");o="",n.forEach((t,r)=>{o+=t,r!==n.length-1&&(o+=e)})}return o};if(m)switch(e){case"desktop":s[l]=t?g(m):m,o.cssProp&&o.value&&(s[o.cssProp]=o.value);break;case"tablet":c[l]=t?g(m):m,o.cssProp&&o.value&&(c[o.cssProp]=o.value);break;case"mobile":u[l]=t?g(m):m,o.cssProp&&o.value&&(u[o.cssProp]=o.value)}}),{desktop:s,tablet:c,mobile:u}},ge=(e,t,o,n)=>{let r={},l={},a={};return me(e)&&(me(t)&&(r[e]=t),me(o)&&(l[e]=o),me(n)&&(a[e]=n)),{desktop:r,tablet:l,mobile:a}},he=e=>{const t=t=>re(e.attrNameTemplate,e.attrName,t),o=me(e,"all")&&void 0!==e.disableDirections&&e.disableDirections.length>0?e.disableDirections:[],n=me(e,"all")&&void 0!==e.isImportant&&e.isImportant?" !important":"",{blockAttributes:r}=e,l=["Top","Right","Bottom","Left"];let a={},i={},s={};return Object.entries(x).map(([c])=>{const u=ae(c),p=t("Unit"+u),m="p"===r[p]?"%":r[p]||"px";[...l].map((p,b)=>{const d=r[t(p+u)],f=r[t(`${p}Decimal`+u)];if(me(d)||me(f)){let t;const r=e.attrName?e.attrName.toLowerCase():"";if(r.includes("border")){if(r.includes("width"))t=`border${p}Width`;else if(r.includes("radius")){let e,o,n;o=b%2?l[b-1]:p,n=b%2?p:l[l.length-b-1],e=`${o}${n}`,t=`border${e}Radius`}}else t=e.attrName?`${r}${p}`:p.toLowerCase();let u="";if(ce(m)&&""!==d?u=o.length>0&&o.includes(p)?"":parseInt(d,10)+m:ue(m)&&""!==f&&(u=o.length>0&&o.includes(p)?"":parseFloat(f)+m),u)switch(c){case"desktop":a[t]=u+n;break;case"tablet":i[t]=u+n;break;case"mobile":s[t]=u+n}}})}),{desktop:a,tablet:i,mobile:s}};he.defaultProps={attrNameTemplate:"",attrName:"",blockAttributes:{},disableDirections:[],isImportant:!1};const ke=he,ye=e=>{const{blockAttributes:t}=e,o=me(e,"all")&&e.attrNameTemplate||"",n=me(e,"all")&&e.attrName||"Background",r=(e,t)=>re(o,n+e,t);let l={},a={},i={};return t[r("Attachment")]&&(l.backgroundAttachment=t[r("Attachment")]),Object.entries(x).map(([e])=>{let o=ae(e),n={};if(t[r("Image",o)]&&t[r("Image",o)].url&&(n.backgroundImage=`url(${t[r("Image",o)].url})`),t[r("Repeat",o)]&&(n.backgroundRepeat=t[r("Repeat",o)]),"custom"===t[r("Position",o)]){let e="",l="";(t[r("XPosition",o)]||t[r("XPositionDecimal",o)])&&(ce(t[r("XPositionUnit",o)])&&t[r("XPosition",o)]?e=parseInt(t[r("XPosition",o)],10)+t[r("XPositionUnit",o)]:ue(t[r("XPositionUnit",o)])&&t[r("XPositionDecimal",o)]&&(e=parseFloat(t[r("XPositionDecimal",o)])+t[r("XPositionUnit",o)])),(t[r("YPosition",o)]||t[r("YPositionDecimal",o)])&&(ce(t[r("YPositionUnit",o)])&&t[r("YPosition",o)]?l=parseInt(t[r("YPosition",o)],10)+t[r("YPositionUnit",o)]:ue(t[r("YPositionUnit",o)])&&t[r("YPositionDecimal",o)]&&(l=parseFloat(t[r("YPositionDecimal",o)])+t[r("YPositionUnit",o)])),""===e&&""===l||(n.backgroundPosition=e+" "+l)}else t[r("Position",o)]&&(n.backgroundPosition=t[r("Position",o)]);"custom"===t[r("Size",o)]?(t[r("SizeWidth",o)]||t[r("SizeWidthDecimal",o)])&&(ce(t[r("SizeWidthUnit",o)])&&t[r("SizeWidth",o)]?n.backgroundSize=parseInt(t[r("SizeWidth",o)],10)+t[r("SizeWidthUnit",o)]+" auto":ue(t[r("SizeWidthUnit",o)])&&t[r("SizeWidthDecimal",o)]&&(n.backgroundSize=parseFloat(t[r("SizeWidthDecimal",o)])+t[r("SizeWidthUnit",o)]+" auto")):t[r("Size",o)]&&(n.backgroundSize=t[r("Size",o)]),Object.keys(n).length>0&&Object.entries(n).map(([t,o])=>{switch(e){case"desktop":l[t]=o;break;case"tablet":a[t]=o;break;case"mobile":i[t]=o}})}),{desktop:l,tablet:a,mobile:i}};ye.defaultProps={attrNameTemplate:"",attrName:"Background",blockAttributes:{}};const ve=ye,_e=e=>{const{blockAttributes:t}=e,o=me(e,"all")&&e.attrNameTemplate||"",n=(e,t)=>re(o,e,t),r=t[n("BackgroundType")]||"";let l={},i={},s={};if("gradient"===r){let e={type:"linear",position:"",color_1:"",location_1:"",color_2:"",location_2:""};t[n("BackgroundGradientColor1")]&&(e.color_1=t[n("BackgroundGradientColor1")]),me(t[n("BackgroundGradientLocation1")])&&(e.location_1=pe(t[n("BackgroundGradientLocation1")])+"%"),t[n("BackgroundGradientColor2")]&&(e.color_2=t[n("BackgroundGradientColor2")]),me(t[n("BackgroundGradientLocation2")])&&(e.location_2=pe(t[n("BackgroundGradientLocation2")])+"%"),t[n("BackgroundGradientType")]&&(e.type=t[n("BackgroundGradientType")]),"linear"===e.type&&""!==t[n("BackgroundGradientTypeAngle")]?e.position=pe(t[n("BackgroundGradientTypeAngle")])+"deg":"radial"===e.type&&t[n("BackgroundGradientTypePosition")]&&(e.position="at "+t[n("BackgroundGradientTypePosition")]),e.type&&e.position&&e.color_1&&e.location_1&&e.color_2&&e.location_2?(l.backgroundColor="transparent",l.backgroundImage=`${e.type}-gradient(${e.position}, ${e.color_1} ${e.location_1}, ${e.color_2} ${e.location_2})`):e.color_1&&(l.backgroundColor=e.color_1)}else"video"===r?!t[n("BackgroundVideoPlayOnMobile")]&&t[n("BackgroundVideoFallbackImage")]&&t[n("BackgroundVideoFallbackImage")].url&&(i.backgroundImage=`url(${t[n("BackgroundVideoFallbackImage")].url})`,i.backgroundPosition="center",i.backgroundSize="cover"):(t[n("BackgroundColor")]&&(l.backgroundColor=t[n("BackgroundColor")]),s=ve({attrNameTemplate:o,blockAttributes:t}));return a()({desktop:l,tablet:{},mobile:i},s)};_e.defaultProps={attrNameTemplate:"",blockAttributes:{}};const we=_e,qe=e=>{const{blockAttributes:t}=e,o=me(e,"all")&&e.attrNameTemplate||"",n=me(e,"all")&&e.disableWidthDirections||[],r=!me(e,"all")||(e.allowBorderColor??!0),l=(e,t)=>re(o,e,t);let i={},s={};const c=!me(e,"all")||(e.allowBorderRadius??!0)?ke({blockAttributes:t,attrNameTemplate:o,attrName:"BorderRadius",disableDirections:n}):{};return t[l("BorderStyle")]&&(i.borderStyle=t[l("BorderStyle")],r&&t[l("BorderColor")]&&(i.borderColor=t[l("BorderColor")]),s=ke({attrNameTemplate:o,attrName:"BorderWidth",blockAttributes:t})),a()({desktop:i,tablet:{},mobile:{}},s,c)};qe.defaultProps={attrNameTemplate:"",allowBorderColor:!0,allowBorderRadius:!0,blockAttributes:{}};const Se=qe,Ae=e=>{const{blockAttributes:t,excludeOptions:o}=e,n=me(e,"all")&&e.attrNameTemplate||"",r=(e,t)=>re(n,e,t);let l={},a={x:0,y:0,blur:0,spread:0,color:"",position:""};var i;return t[r("BoxShadowColor")]&&(a.color=t[r("BoxShadowColor")]),""!==t[r("BoxShadowHorizontal")]&&(a.x=t[r("BoxShadowHorizontal")]),""!==t[r("BoxShadowVertical")]&&(a.y=t[r("BoxShadowVertical")]),""!==t[r("BoxShadowBlur")]&&(a.blur=t[r("BoxShadowBlur")]),""!==t[r("BoxShadowSpread")]&&(a.spread=t[r("BoxShadowSpread")]),i="position",o&&o.length&&o.includes(i)||!t[r("BoxShadowPosition")]||(a.position=t[r("BoxShadowPosition")]),a.color&&(l.boxShadow=a.x+"px "+a.y+"px "+a.blur+"px "+a.spread+"px "+a.color+" "+a.position),{desktop:l,tablet:{},mobile:{}}};Ae.defaultProps={attrNameTemplate:"",blockAttributes:{}};const xe=Ae,Ie=e=>{const{blockAttributes:t}=e,o=(e,t="")=>re("",e,t),n=me(e,"all")&&e.excludePanels||[],r=me(e,"all")&&e.includePanels||[];let l=r&&r.length?r:J();n&&n.length&&n.forEach(e=>{l.splice(l.indexOf(e),1)});let i={},s={},c={},u={},p={};l.includes("advanced")&&(me(t[o("zIndex")])&&(i.zIndex=pe(t[o("zIndex")])),u=ke({attrName:o("Margin"),blockAttributes:t}),p=ke({attrName:o("Padding"),blockAttributes:t})),l.includes("motion-effects")&&void 0!==t[o("EntranceAnimation")]&&""!==t[o("EntranceAnimation")]&&t[o("EntranceAnimationDelay")]&&(i.animationDelay=pe(t[o("EntranceAnimationDelay")])+"ms");let m={};l.includes("background")&&(m=we({attrNameTemplate:"Advanced",blockAttributes:t}));let b={};if(l.includes("border")){const e=Se({attrNameTemplate:"Advanced",blockAttributes:t}),o=xe({attrNameTemplate:"Advanced",blockAttributes:t});b=a()(e,o)}if(l.includes("positioning")){me(t[o("BlockPosition")])&&(i.position=t[o("BlockPosition")]);const e=t[o("PositionHorizontalOrientation")],n=t[o("PositionVerticalOrientation")];Object.entries(x).map(([r])=>{let l=ae(r),a={};"custom"!==t[o("BlockWidth")]&&"custom"!==t[o("BlockWidth",l)]||!t[o("BlockCustomWidth",l)]&&!t[o("BlockCustomWidthDecimal",l)]||(ce(t[o("BlockCustomWidthUnit",l)])&&t[o("BlockCustomWidth",l)]?(a.width=parseInt(t[o("BlockCustomWidth",l)],10)+t[o("BlockCustomWidthUnit",l)],a.maxWidth=parseInt(t[o("BlockCustomWidth",l)],10)+t[o("BlockCustomWidthUnit",l)]):ue(t[o("BlockCustomWidthUnit",l)])&&t[o("BlockCustomWidthDecimal",l)]&&(a.width=parseFloat(t[o("BlockCustomWidthDecimal",l)])+t[o("BlockCustomWidthUnit",l)],a.maxWidth=parseFloat(t[o("BlockCustomWidthDecimal",l)])+t[o("BlockCustomWidthUnit",l)])),""===be(t[o("PositionHorizontalOffset",l)])&&""===be(t[o("PositionHorizontalOffsetDecimal",l)])||(ce(t[o("PositionHorizontalOffsetUnit",l)])&&""!==be(t[o("PositionHorizontalOffset",l)])?a[e]=parseInt(t[o("PositionHorizontalOffset",l)],10)+t[o("PositionHorizontalOffsetUnit",l)]:ue(t[o("PositionHorizontalOffsetUnit",l)])&&""!==be(t[o("PositionHorizontalOffsetDecimal",l)])&&(a[e]=parseFloat(t[o("PositionHorizontalOffsetDecimal",l)])+t[o("PositionHorizontalOffsetUnit",l)])),""===be(t[o("PositionVerticalOffset",l)])&&""===be(t[o("PositionVerticalOffsetDecimal",l)])||(ce(t[o("PositionVerticalOffsetUnit",l)])&&""!==be(t[o("PositionVerticalOffset",l)])?a[n]=parseInt(t[o("PositionVerticalOffset",l)],10)+t[o("PositionVerticalOffsetUnit",l)]:ue(t[o("PositionVerticalOffsetUnit",l)])&&""!==be(t[o("PositionVerticalOffsetDecimal",l)])&&(a[n]=parseFloat(t[o("PositionVerticalOffsetDecimal",l)])+t[o("PositionVerticalOffsetUnit",l)])),Object.keys(a).length>0&&Object.entries(a).map(([e,t])=>{switch(r){case"desktop":i[e]=t;break;case"tablet":s[e]=t;break;case"mobile":c[e]=t}})})}return i={desktop:i,tablet:s,mobile:c},a()(i,u,p,m,b)};Ie.defaultProps={blockAttributes:{},excludePanels:[],includePanels:[]};const Ce=Ie,Ee=e=>{const{unitType:t,unitValue:o,onChangeUnit:n}=e;if(e.units[t])return wp.element.createElement("ul",{className:"qodef-unit-control"},Object.entries(e.units[t]).map(([e,t],r)=>wp.element.createElement("li",{key:r},wp.element.createElement("a",{className:m()("qodef-unit",{"qodef--selected":("p"===e?"%":e)===o}),onClick:n,"data-unit":"p"===e?"%":e},t))))};Ee.defaultProps={units:{typography:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),rem:(0,e.__)("rem","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},measure:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},space:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),em:(0,e.__)("em","qi-blocks")},height:{px:(0,e.__)("px","qi-blocks"),vw:(0,e.__)("vw","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},xPosition:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},yPosition:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},pxAndPercent:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks")},pxAndEm:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks")},pxEmVw:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},pxPercentVh:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vh:(0,e.__)("vh","qi-blocks")},pxPercentVw:{px:(0,e.__)("px","qi-blocks"),p:(0,e.__)("%","qi-blocks"),vw:(0,e.__)("vw","qi-blocks")},pxEmRem:{px:(0,e.__)("px","qi-blocks"),em:(0,e.__)("em","qi-blocks"),rem:(0,e.__)("rem","qi-blocks")}},unitValue:"",onChangeUnit:()=>{}};const Te=Ee;class Pe extends c.Component{constructor(){super(...arguments),this.state={screen:A,isScreenPickerOpen:!1,isMouseOver:!1}}onChangeScreen(e,t){const o=this;o.state.isScreenPickerOpen?(o.props.onChangeScreen(e),o.setState({screen:e,isScreenPickerOpen:!1}),I=e,!t&&o.changePreviewScreen(e),(0,P.doAction)("qi-blocks-action-screen-change",e)):t||o.setState({isScreenPickerOpen:!0}),window.addEventListener("click",e=>{const t=document.querySelectorAll(".qodef-screens-option .qodef-screens.qodef--opened");t.length&&!t[0].contains(e.target)&&o.setState({isScreenPickerOpen:!1})})}onOtherScreenChange(e){this.props.onChangeScreen(e),this.setState({screen:e})}componentDidMount(){const{instanceId:e}=this.props;(0,P.addAction)("qi-blocks-action-screen-change",`qi-blocks/components/screen-control-${e}`,this.onOtherScreenChange.bind(this))}componentWillUnmount(){const{instanceId:e}=this.props;(0,P.removeAction)("qi-blocks-action-screen-change",`qi-blocks/components/screen-control-${e}`)}changeScreenControls(e){C()!==e.previewScreen&&this.onChangeScreen(e.previewScreen,!0)}changePreviewScreen(e){if(e!==this.props.previewScreen){const t=(0,O.dispatch)("core/edit-post")||"",o=(0,O.dispatch)("core/edit-site")||"";let n;if(t){let{__experimentalSetPreviewDeviceType:e}=t;n=e}if(o){const{__experimentalSetPreviewDeviceType:e}=o;n=e}n&&n(le(e))}}render(){const e={...this.props},t={...this.state},{label:o,screens:n,isWidgetsArea:r,previewScreen:l}=e;let a=!1;return(n.length<1||r)&&(a=!0),A!==l&&t.screen!==l&&this.onOtherScreenChange(l),this.changeScreenControls(e),wp.element.createElement("div",{className:"qodef-screens-option"},A!==t.screen&&wp.element.createElement("style",null,"\n\t\t\t\t\t\t\t.qodef-screens-option .qodef-screens.qodef--opened {\n\t\t\t\t\t\t\t\ttop: calc(-4px - 22px * "+Object.keys(n).indexOf(t.screen)+");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"),o&&wp.element.createElement("label",{className:"qodef-option-label"},o),!a&&wp.element.createElement("ul",{className:"qodef-screens "+(t.isScreenPickerOpen?"qodef--opened":"")},Object.entries(n).map(([e,o],r)=>r===Object.keys(n).indexOf(t.screen)||t.isScreenPickerOpen?wp.element.createElement("li",{className:"qodef-screen-item "+(e===t.screen?"qodef--selected":""),key:r},wp.element.createElement(u.Button,{className:"qodef-screen-item-button",onClick:()=>this.onChangeScreen(e),icon:o.icon,showTooltip:!1,label:o.label,"data-screen":e,onMouseEnter:()=>this.setState({isMouseOver:e}),onMouseLeave:()=>this.setState({isMouseOver:!1})}),e===t.isMouseOver&&wp.element.createElement("div",{className:"qodef-screen-item-tooltip"},o.label)):null)))}}Pe.defaultProps={label:"",screens:x,isWidgetsArea:!1,previewScreen:"desktop",onChangeScreen:()=>{}};const Oe=(0,O.withSelect)(e=>{let t="desktop";return e("core/edit-post")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-post").__experimentalGetPreviewDeviceType().toLowerCase()),e("core/edit-site")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-site").__experimentalGetPreviewDeviceType().toLowerCase()),{isWidgetsArea:e("core/edit-widgets")&&!e("core/edit-post"),previewScreen:t}})((0,s.withInstanceId)(Pe));class Be extends c.Component{constructor(){super(...arguments),this.state={screen:C(),linkedInputs:!1}}getScreenLabelSuffix(e){const t=e||this.state.screen;return ae(t)}getAttributeValue(e,t=""){const{blockAttributes:o,allowScreens:n,repeater:r,repeaterItemIndex:l,repeaterItemKey:a,repeaterGetAttributes:i}=this.props;let s=e;n&&t&&(s=e+t);let c=o[s];return r&&(c=i({key:a,childKey:s},l)),be(c)}setAttributeValue(e,t,o=""){const{setAttributes:n,allowScreens:r,repeater:l,repeaterItemIndex:a,repeaterItemKey:i,repeaterSetAttributes:s}=this.props;let c=e;r&&o&&(c=e+o),l?s({key:i,childKey:c},t,a):n({[c]:t})}render(){const t={...this.props},{label:o,allowScreens:n,rangeMax:r,rangeMin:l,rangeStep:a,rangeDecimalMax:i,rangeDecimalMin:s,rangeDecimalStep:c,repeater:p}=t,m=e=>re(t.attrNameTemplate,t.attrName,e),b=this.getScreenLabelSuffix(),d=m(),f=m("Unit"+b),g=["Top","Right","Bottom","Left"],h=()=>{const e=this.getAttributeValue(f)||"px";return ce(e)},k="margin"===t.attrName.toLowerCase()||t.allowNegativeValues?-1*(h()?r:i):h()?l:s;return t.onChange=(e,t)=>{h()?this.setAttributeValue(m(t),pe(e),b):this.setAttributeValue(m(`${t}Decimal`),pe(e,"decimal"),b)},t.getValue=e=>{let t;return t=h()?""!==this.getAttributeValue(m(e),b)?parseInt(this.getAttributeValue(m(e),b),10):"":""!==this.getAttributeValue(m(`${e}Decimal`),b)?parseFloat(this.getAttributeValue(m(`${e}Decimal`),b)):"",t},t.getPlaceholderValue=e=>{let t="";return"Tablet"===b?t=h()?""!==this.getAttributeValue(m(e))?parseInt(this.getAttributeValue(m(e)),10):"":""!==this.getAttributeValue(m(`${e}Decimal`))?parseFloat(this.getAttributeValue(m(`${e}Decimal`))):"":"Mobile"===b&&(h()?""!==this.getAttributeValue(m(e),"Tablet")?t=parseInt(this.getAttributeValue(m(e),"Tablet"),10):""!==this.getAttributeValue(m(e))&&(t=parseInt(this.getAttributeValue(m(e)),10)):""!==this.getAttributeValue(m(`${e}Decimal`),"Tablet")?t=parseInt(this.getAttributeValue(m(`${e}Decimal`),"Tablet"),10):""!==this.getAttributeValue(m(`${e}Decimal`))&&(t=parseInt(this.getAttributeValue(m(`${e}Decimal`)),10))),t},t.getRangeValue=()=>{let e="";return[...g].some(o=>{t.disableDirections.includes(o)||(e=t.getValue(o))}),e},t.onRangeChange=e=>{[...g].map(o=>{t.disableDirections.length>0&&t.disableDirections.includes(o)?t.onChange("",o):t.onChange(e,o)})},t.onChangeScreen=e=>{this.setState({screen:e})},t.onLinkInputs=e=>{e.preventDefault(),this.state.linkedInputs||[...g].map(e=>{t.disableDirections.length>0&&t.disableDirections.includes(e)?t.onChange("",e):t.onChange(t.getValue("Top"),e)}),this.setState({linkedInputs:!this.state.linkedInputs})},t.onChangeUnit=e=>{e.preventDefault();const t=p?200:0,o=e.target.getAttribute("data-unit"),n=this.getAttributeValue(f)||"px";this.setAttributeValue(f,o),setTimeout(()=>{o!==n&&[...g].map(e=>{const t=d+e,r=`${t}Decimal`;let l=t+b,a=r+b;"px"!==o&&(l=r+b),"px"===n&&(a=t+b,this.setAttributeValue(a,"")),this.setAttributeValue(l,this.getAttributeValue(a))})},t)},wp.element.createElement(u.BaseControl,{className:"qodef-input-control"},wp.element.createElement("div",{className:"qodef-control-heading"},n?wp.element.createElement("div",{className:"qodef-input-control-screens"},wp.element.createElement(Oe,{label:o,onChangeScreen:t.onChangeScreen})):wp.element.createElement("label",{className:"qodef-option-label"},o),t.allowUnitControl&&wp.element.createElement(Te,{unitType:t.unitType,unitValue:this.getAttributeValue(f),onChangeUnit:t.onChangeUnit}),t.allowLinkedControl&&wp.element.createElement(u.Button,{icon:this.state.linkedInputs?"editor-unlink":"admin-links",onClick:t.onLinkInputs,className:"qodef-link-inputs-button "+(this.state.linkedInputs?"linked":"unlinked")})),this.state.linkedInputs?wp.element.createElement(u.RangeControl,{min:l,max:h()?r:i,step:h()?a:c,onChange:t.onRangeChange,allowReset:!0,value:t.getRangeValue()}):wp.element.createElement("ul",null,[...g].map((o,n)=>wp.element.createElement("li",{className:"qodef-input-control-item",key:n},t.disableDirections.length>0&&t.disableDirections.includes(o)?wp.element.createElement("div",{className:"components-base-control__field"},wp.element.createElement("label",null,(0,e.__)(o,"qi-blocks")),wp.element.createElement("input",{className:"components-text-control__input",type:"text",disabled:!0,value:(0,e.__)("auto","qi-blocks")})):wp.element.createElement(u.TextControl,{type:"number",value:t.getValue(o),placeholder:t.getPlaceholderValue(o),onChange:e=>t.onChange(e,o),label:(0,e.__)(o,"qi-blocks"),min:k,max:h()?r:i,step:h()?a:c})))))}}Be.defaultProps={label:"",attrNameTemplate:"",attrName:"",blockAttributes:{},setAttributes:()=>{},unitType:"space",allowScreens:!0,allowNegativeValues:!1,disableDirections:[],allowUnitControl:!0,allowLinkedControl:!0,rangeMax:600,rangeMin:0,rangeStep:1,rangeDecimalMax:100,rangeDecimalMin:0,rangeDecimalStep:.01,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Ne=Be;class De extends c.Component{constructor(){super(...arguments),this.state={screen:C()}}getScreenLabelSuffix(){return ae(this.state.screen)}getAttributeValue(e,t=this.getScreenLabelSuffix()){const{blockAttributes:o,repeater:n,repeaterItemIndex:r,repeaterItemKey:l,repeaterGetAttributes:a}=this.props;let i=e;t&&(i=e+t);let s=o[i];return n&&(s=a({key:l,childKey:i},r)),be(s)}setAttributeValue(e,t,o=this.getScreenLabelSuffix()){const{setAttributes:n,setCustomEventOnChange:r,repeater:l,repeaterItemIndex:a,repeaterItemKey:i,repeaterSetAttributes:s}=this.props;let c=e;o&&(c=e+o),l?s({key:i,childKey:c},t,a):n({[c]:t}),r(t)}render(){const e={...this.props},{label:t,blockAttributeKey:o,selectOptions:n}=e;return e.onChangeScreen=e=>{this.setState({screen:e})},wp.element.createElement(u.BaseControl,{className:"qodef-advanced-select-option"},wp.element.createElement("div",{className:"qodef-advanced-select-heading"},wp.element.createElement(Oe,{label:t,onChangeScreen:e.onChangeScreen})),wp.element.createElement(u.SelectControl,{value:this.getAttributeValue(o),options:n,onChange:e=>this.setAttributeValue(o,e)}))}}De.defaultProps={label:(0,e.__)("Default Label Text","qi-blocks"),blockAttributes:{},blockAttributeKey:"",setAttributes:()=>{},selectOptions:{},setCustomEventOnChange:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Re=De,Me=wp.blob,{entries:Le,setPrototypeOf:je,isFrozen:Ve,getPrototypeOf:$e,getOwnPropertyDescriptor:Ue}=Object;let{freeze:He,seal:Fe,create:ze}=Object,{apply:Ke,construct:Ge}="undefined"!=typeof Reflect&&Reflect;He||(He=function(e){return e}),Fe||(Fe=function(e){return e}),Ke||(Ke=function(e,t,o){return e.apply(t,o)}),Ge||(Ge=function(e,t){return new e(...t)});const We=ct(Array.prototype.forEach),Ye=ct(Array.prototype.lastIndexOf),Xe=ct(Array.prototype.pop),Ze=ct(Array.prototype.push),Qe=ct(Array.prototype.splice),Je=ct(String.prototype.toLowerCase),et=ct(String.prototype.toString),tt=ct(String.prototype.match),ot=ct(String.prototype.replace),nt=ct(String.prototype.indexOf),rt=ct(String.prototype.trim),lt=ct(Object.prototype.hasOwnProperty),at=ct(RegExp.prototype.test),it=(st=TypeError,function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return Ge(st,t)});var st;function ct(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return Ke(e,t,n)}}function ut(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Je;je&&je(e,null);let n=t.length;for(;n--;){let r=t[n];if("string"==typeof r){const e=o(r);e!==r&&(Ve(t)||(t[n]=e),r=e)}e[r]=!0}return e}function pt(e){for(let t=0;t<e.length;t++){lt(e,t)||(e[t]=null)}return e}function mt(e){const t=ze(null);for(const[o,n]of Le(e)){lt(e,o)&&(Array.isArray(n)?t[o]=pt(n):n&&"object"==typeof n&&n.constructor===Object?t[o]=mt(n):t[o]=n)}return t}function bt(e,t){for(;null!==e;){const o=Ue(e,t);if(o){if(o.get)return ct(o.get);if("function"==typeof o.value)return ct(o.value)}e=$e(e)}return function(){return null}}const dt=He(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ft=He(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),gt=He(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ht=He(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),kt=He(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),yt=He(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),vt=He(["#text"]),_t=He(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),wt=He(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),qt=He(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),St=He(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),At=Fe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xt=Fe(/<%[\w\W]*|[\w\W]*%>/gm),It=Fe(/\$\{[\w\W]*/gm),Ct=Fe(/^data-[\-\w.\u00B7-\uFFFF]+$/),Et=Fe(/^aria-[\-\w]+$/),Tt=Fe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Pt=Fe(/^(?:\w+script|data):/i),Ot=Fe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bt=Fe(/^html$/i),Nt=Fe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Dt=Object.freeze({__proto__:null,ARIA_ATTR:Et,ATTR_WHITESPACE:Ot,CUSTOM_ELEMENT:Nt,DATA_ATTR:Ct,DOCTYPE_NAME:Bt,ERB_EXPR:xt,IS_ALLOWED_URI:Tt,IS_SCRIPT_OR_DATA:Pt,MUSTACHE_EXPR:At,TMPLIT_EXPR:It});const Rt=1,Mt=3,Lt=7,jt=8,Vt=9,$t=function(){return"undefined"==typeof window?null:window};var Ut=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$t();const o=t=>e(t);if(o.version="3.2.6",o.removed=[],!t||!t.document||t.document.nodeType!==Vt||!t.Element)return o.isSupported=!1,o;let{document:n}=t;const r=n,l=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:i,Node:s,Element:c,NodeFilter:u,NamedNodeMap:p=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:b,trustedTypes:d}=t,f=c.prototype,g=bt(f,"cloneNode"),h=bt(f,"remove"),k=bt(f,"nextSibling"),y=bt(f,"childNodes"),v=bt(f,"parentNode");if("function"==typeof i){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let _,w="";const{implementation:q,createNodeIterator:S,createDocumentFragment:A,getElementsByTagName:x}=n,{importNode:I}=r;let C={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof Le&&"function"==typeof v&&q&&void 0!==q.createHTMLDocument;const{MUSTACHE_EXPR:E,ERB_EXPR:T,TMPLIT_EXPR:P,DATA_ATTR:O,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:R}=Dt;let{IS_ALLOWED_URI:M}=Dt,L=null;const j=ut({},[...dt,...ft,...gt,...kt,...vt]);let V=null;const $=ut({},[..._t,...wt,...qt,...St]);let U=Object.seal(ze(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,F=null,z=!0,K=!0,G=!1,W=!0,Y=!1,X=!0,Z=!1,Q=!1,J=!1,ee=!1,te=!1,oe=!1,ne=!0,re=!1,le=!0,ae=!1,ie={},se=null;const ce=ut({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const pe=ut({},["audio","video","img","source","image","track"]);let me=null;const be=ut({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let he=ge,ke=!1,ye=null;const ve=ut({},[de,fe,ge],et);let _e=ut({},["mi","mo","mn","ms","mtext"]),we=ut({},["annotation-xml"]);const qe=ut({},["title","style","font","a","script"]);let Se=null;const Ae=["application/xhtml+xml","text/html"];let xe=null,Ie=null;const Ce=n.createElement("form"),Ee=function(e){return e instanceof RegExp||e instanceof Function},Te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ie||Ie!==e){if(e&&"object"==typeof e||(e={}),e=mt(e),Se=-1===Ae.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,xe="application/xhtml+xml"===Se?et:Je,L=lt(e,"ALLOWED_TAGS")?ut({},e.ALLOWED_TAGS,xe):j,V=lt(e,"ALLOWED_ATTR")?ut({},e.ALLOWED_ATTR,xe):$,ye=lt(e,"ALLOWED_NAMESPACES")?ut({},e.ALLOWED_NAMESPACES,et):ve,me=lt(e,"ADD_URI_SAFE_ATTR")?ut(mt(be),e.ADD_URI_SAFE_ATTR,xe):be,ue=lt(e,"ADD_DATA_URI_TAGS")?ut(mt(pe),e.ADD_DATA_URI_TAGS,xe):pe,se=lt(e,"FORBID_CONTENTS")?ut({},e.FORBID_CONTENTS,xe):ce,H=lt(e,"FORBID_TAGS")?ut({},e.FORBID_TAGS,xe):mt({}),F=lt(e,"FORBID_ATTR")?ut({},e.FORBID_ATTR,xe):mt({}),ie=!!lt(e,"USE_PROFILES")&&e.USE_PROFILES,z=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,W=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,oe=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,le=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||Tt,he=e.NAMESPACE||ge,_e=e.MATHML_TEXT_INTEGRATION_POINTS||_e,we=e.HTML_INTEGRATION_POINTS||we,U=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(U.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(K=!1),te&&(ee=!0),ie&&(L=ut({},vt),V=[],!0===ie.html&&(ut(L,dt),ut(V,_t)),!0===ie.svg&&(ut(L,ft),ut(V,wt),ut(V,St)),!0===ie.svgFilters&&(ut(L,gt),ut(V,wt),ut(V,St)),!0===ie.mathMl&&(ut(L,kt),ut(V,qt),ut(V,St))),e.ADD_TAGS&&(L===j&&(L=mt(L)),ut(L,e.ADD_TAGS,xe)),e.ADD_ATTR&&(V===$&&(V=mt(V)),ut(V,e.ADD_ATTR,xe)),e.ADD_URI_SAFE_ATTR&&ut(me,e.ADD_URI_SAFE_ATTR,xe),e.FORBID_CONTENTS&&(se===ce&&(se=mt(se)),ut(se,e.FORBID_CONTENTS,xe)),le&&(L["#text"]=!0),Z&&ut(L,["html","head","body"]),L.table&&(ut(L,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw it('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw it('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,w=_.createHTML("")}else void 0===_&&(_=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let o=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(o=t.getAttribute(n));const r="dompurify"+(o?"#"+o:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(d,l)),null!==_&&"string"==typeof w&&(w=_.createHTML(""));He&&He(e),Ie=e}},Pe=ut({},[...ft,...gt,...ht]),Oe=ut({},[...kt,...yt]),Be=function(e){Ze(o.removed,{element:e});try{v(e).removeChild(e)}catch(t){h(e)}},Ne=function(e,t){try{Ze(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Ze(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Be(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},De=function(e){let t=null,o=null;if(J)e="<remove></remove>"+e;else{const t=tt(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===Se&&he===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=_?_.createHTML(e):e;if(he===ge)try{t=(new b).parseFromString(r,Se)}catch(e){}if(!t||!t.documentElement){t=q.createDocument(he,"template",null);try{t.documentElement.innerHTML=ke?w:r}catch(e){}}const l=t.body||t.documentElement;return e&&o&&l.insertBefore(n.createTextNode(o),l.childNodes[0]||null),he===ge?x.call(t,Z?"html":"body")[0]:Z?t.documentElement:l},Re=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Me=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof s&&e instanceof s};function Ve(e,t,n){We(e,e=>{e.call(o,t,n,Ie)})}const $e=function(e){let t=null;if(Ve(C.beforeSanitizeElements,e,null),Me(e))return Be(e),!0;const n=xe(e.nodeName);if(Ve(C.uponSanitizeElement,e,{tagName:n,allowedTags:L}),X&&e.hasChildNodes()&&!je(e.firstElementChild)&&at(/<[/\w!]/g,e.innerHTML)&&at(/<[/\w!]/g,e.textContent))return Be(e),!0;if(e.nodeType===Lt)return Be(e),!0;if(X&&e.nodeType===jt&&at(/<[/\w]/g,e.data))return Be(e),!0;if(!L[n]||H[n]){if(!H[n]&&Fe(n)){if(U.tagNameCheck instanceof RegExp&&at(U.tagNameCheck,n))return!1;if(U.tagNameCheck instanceof Function&&U.tagNameCheck(n))return!1}if(le&&!se[n]){const t=v(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&t){for(let n=o.length-1;n>=0;--n){const r=g(o[n],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,k(e))}}}return Be(e),!0}return e instanceof c&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:he,tagName:"template"});const o=Je(e.tagName),n=Je(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===fe?t.namespaceURI===ge?"svg"===o:t.namespaceURI===de?"svg"===o&&("annotation-xml"===n||_e[n]):Boolean(Pe[o]):e.namespaceURI===de?t.namespaceURI===ge?"math"===o:t.namespaceURI===fe?"math"===o&&we[n]:Boolean(Oe[o]):e.namespaceURI===ge?!(t.namespaceURI===fe&&!we[n])&&!(t.namespaceURI===de&&!_e[n])&&!Oe[o]&&(qe[o]||!Pe[o]):!("application/xhtml+xml"!==Se||!ye[e.namespaceURI]))}(e)?(Be(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!at(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===Mt&&(t=e.textContent,We([E,T,P],e=>{t=ot(t,e," ")}),e.textContent!==t&&(Ze(o.removed,{element:e.cloneNode()}),e.textContent=t)),Ve(C.afterSanitizeElements,e,null),!1):(Be(e),!0)},Ue=function(e,t,o){if(ne&&("id"===t||"name"===t)&&(o in n||o in Ce))return!1;if(K&&!F[t]&&at(O,t));else if(z&&at(B,t));else if(!V[t]||F[t]){if(!(Fe(e)&&(U.tagNameCheck instanceof RegExp&&at(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&at(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t))||"is"===t&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&at(U.tagNameCheck,o)||U.tagNameCheck instanceof Function&&U.tagNameCheck(o))))return!1}else if(me[t]);else if(at(M,ot(o,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==nt(o,"data:")||!ue[e]){if(G&&!at(N,ot(o,D,"")));else if(o)return!1}else;return!0},Fe=function(e){return"annotation-xml"!==e&&tt(e,R)},Ke=function(e){Ve(C.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Me(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let r=t.length;for(;r--;){const l=t[r],{name:a,namespaceURI:i,value:s}=l,c=xe(a),u=s;let p="value"===a?u:rt(u);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Ve(C.uponSanitizeAttribute,e,n),p=n.attrValue,!re||"id"!==c&&"name"!==c||(Ne(a,e),p="user-content-"+p),X&&at(/((--!?|])>)|<\/(style|title)/i,p)){Ne(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Ne(a,e);continue}if(!W&&at(/\/>/i,p)){Ne(a,e);continue}Y&&We([E,T,P],e=>{p=ot(p,e," ")});const m=xe(e.nodeName);if(Ue(m,c,p)){if(_&&"object"==typeof d&&"function"==typeof d.getAttributeType)if(i);else switch(d.getAttributeType(m,c)){case"TrustedHTML":p=_.createHTML(p);break;case"TrustedScriptURL":p=_.createScriptURL(p)}if(p!==u)try{i?e.setAttributeNS(i,a,p):e.setAttribute(a,p),Me(e)?Be(e):Xe(o.removed)}catch(t){Ne(a,e)}}else Ne(a,e)}Ve(C.afterSanitizeAttributes,e,null)},Ge=function e(t){let o=null;const n=Re(t);for(Ve(C.beforeSanitizeShadowDOM,t,null);o=n.nextNode();)Ve(C.uponSanitizeShadowNode,o,null),$e(o),Ke(o),o.content instanceof a&&e(o.content);Ve(C.afterSanitizeShadowDOM,t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,l=null,i=null,c=null;if(ke=!e,ke&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw it("toString is not a function");if("string"!=typeof(e=e.toString()))throw it("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Q||Te(t),o.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=xe(e.nodeName);if(!L[t]||H[t])throw it("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)n=De("\x3c!----\x3e"),l=n.ownerDocument.importNode(e,!0),l.nodeType===Rt&&"BODY"===l.nodeName||"HTML"===l.nodeName?n=l:n.appendChild(l);else{if(!ee&&!Y&&!Z&&-1===e.indexOf("<"))return _&&oe?_.createHTML(e):e;if(n=De(e),!n)return ee?null:oe?w:""}n&&J&&Be(n.firstChild);const u=Re(ae?e:n);for(;i=u.nextNode();)$e(i),Ke(i),i.content instanceof a&&Ge(i.content);if(ae)return e;if(ee){if(te)for(c=A.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(V.shadowroot||V.shadowrootmode)&&(c=I.call(r,c,!0)),c}let p=Z?n.outerHTML:n.innerHTML;return Z&&L["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&at(Bt,n.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+p),Y&&We([E,T,P],e=>{p=ot(p,e," ")}),_&&oe?_.createHTML(p):p},o.setConfig=function(){Te(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},o.clearConfig=function(){Ie=null,Q=!1},o.isValidAttribute=function(e,t,o){Ie||Te({});const n=xe(e),r=xe(t);return Ue(n,r,o)},o.addHook=function(e,t){"function"==typeof t&&Ze(C[e],t)},o.removeHook=function(e,t){if(void 0!==t){const o=Ye(C[e],t);return-1===o?void 0:Qe(C[e],o,1)[0]}return Xe(C[e])},o.removeHooks=function(e){C[e]=[]},o.removeAllHooks=function(){C={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();class Ht extends c.Component{constructor(){super(...arguments),this.state={screen:C(),imageId:"",externalImageIsSet:!1,imageSizeNotExist:!1}}getScreenLabelSuffix(){return ae(this.state.screen)}getAttributeValue(e=this.getScreenLabelSuffix()){const{blockAttributeKey:t,blockAttributes:o,allowScreens:n,repeater:r,repeaterItemIndex:l,repeaterItemKey:a,isSimpleRepeaterValue:i,repeaterGetAttributes:s}=this.props;let c=t;n&&e&&(c=t+e);let u=o[c];if(r){let o=i?null:t;n&&e&&(o=i?this.state.screen:c),u=s({key:a,childKey:o},l)||{}}return be(u)}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:o,allowScreens:n,repeater:r,repeaterItemIndex:l,repeaterItemKey:a,isSimpleRepeaterValue:i,repeaterSetAttributes:s}=this.props,c=this.getScreenLabelSuffix();let u=t;if(n&&c&&(u=t+c),r){let o=i?null:t;n&&c&&(o=i?this.state.screen:u),s({key:a,childKey:o},e,l)}else o({[u]:e})}componentDidMount(){const{allowScreens:e,allowDefaultImage:t}=this.props,{url:o,id:n,defaultValueIsSet:r}=this.getAttributeValue("");if(o&&!o.includes(qiBlocksEditor.vars.siteURL))this.onSelectURL(o),this.setState({externalImageIsSet:!0});else{n&&(this.setState({imageId:n}),this.updateImageSizeOption(n)),!t||r||o||n||(this.setAttributeValue({id:null,url:qiBlocksEditor.vars.defaultImage,alt:qiBlocksEditor.vars.defaultImagePlaceholder,caption:"",width:1200,height:800,custom_image_size:"",html:""}),this.setState({defaultImageIsSet:!0}));const l=[""];e&&(l.push("Tablet"),l.push("Mobile")),l.map(e=>{const{url:t,id:o}=this.getAttributeValue(e);t&&(0,Me.isBlobURL)(t)&&!o&&this.setAttributeValue({url:"",alt:"",caption:"",width:"",height:"",html:""})})}}setSVGIcon=(e,t,o,n)=>{const r=new XMLHttpRequest;null!=r&&(r.open("GET",t,!0),r.onreadystatechange=()=>{4===r.readyState&&200===r.status&&this.setAttributeValue({id:e,url:t,alt:o,caption:n,html:Ut.sanitize(r.responseText,{USE_PROFILES:{svg:!0,svgFilters:!0}})})},r.send())};onSelectImage=({id:e,url:t,alt:o,caption:n,width:r,height:l})=>{t.includes(".svg")?this.setSVGIcon(e,t,o,n):this.setAttributeValue({id:e,url:t,alt:o,caption:n,width:r,height:l}),this.setState({imageId:e,externalImageIsSet:!1}),this.updateImageSizeOption(e)};updateImageSizeOption=e=>{if(this.props.allowImageSizes){const t=setInterval(()=>{(0,O.select)("core").getMedia(e)&&(clearInterval(t),this.forceUpdate())},1e3)}};onSelectURL=e=>{e.includes(".svg")?this.setSVGIcon(null,e,"",""):this.setAttributeValue({id:null,url:e,alt:"",caption:"",width:"",height:"",html:""}),this.setState({externalImageIsSet:!1})};onUploadError=e=>{const{noticeOperations:t}=this.props;t.createErrorNotice(e)};removeImage=()=>{this.setAttributeValue({id:null,url:"",alt:"",caption:"",width:"",height:"",html:"",defaultValueIsSet:!!this.props.allowDefaultImage})};onImageSizeChange=e=>{const{customImageSizes:t}=this.props,o=(0,O.select)("core").getMedia(this.state.imageId);if(o){let n=e;t&&t.length>1&&(n=this.getImageURLbySize(e)||o.source_url),"custom"===e&&(n=o.source_url),this.setAttributeValue({id:o.id,url:n,alt:o.alt_text||"",caption:o.caption&&o.caption.raw||"",custom_image_size:e})}};getImageURLbySize(e){const t=this.getAttributeValue();let o="";if(t){const n=(0,O.select)("core").getMedia(t.id);if(!n)return"";const r=n.media_details.sizes;if(r&&0===Object.keys(r).length)this.setState({imageSizeNotExist:!0});else{this.setState({imageSizeNotExist:!1});for(const t in r)if(t.includes("qi_blocks_image_size_"+e.replace("-","_"))){o=r[t].source_url;break}}["","custom"].includes(e)&&this.setState({imageSizeNotExist:!1})}return o}getImageSizes(){const{imageSizes:t,customImageSizes:o}=this.props,n=this.getAttributeValue();let r=[];if(n){const l=(0,O.select)("core").getMedia(n.id);if(!l)return[];const a=l.media_details.sizes;if(a&&0===Object.keys(a).length&&r.push({label:(0,e.__)("Default","qi-blocks"),value:""}),o&&o.length>1)o.map(e=>{r.push({label:e.label,value:e.value})});else for(const e in a){const o=a[e],n=t.find(t=>t.slug===e);n&&r.push({label:n.name,value:o.source_url})}}return r}render(){const t={...this.props},o={...this.state},{label:n,help:r,noticeUI:l,allowedTypes:a,allowScreens:s,allowImageSizes:c}=t,p=this.getAttributeValue(),{id:m,url:b,alt:d,html:f}=p;t.onChangeScreen=e=>{this.setState({screen:e}),this.updateImageSizeOption(m)};let g=["qodef-image-option"];return b&&b.includes(".svg")&&g.push("qodef--svg"),wp.element.createElement(u.BaseControl,{className:g.join(" ")},wp.element.createElement("div",{className:"qodef-advanced-select-heading"},s?wp.element.createElement(Oe,{label:n,onChangeScreen:t.onChangeScreen}):wp.element.createElement(wp.element.Fragment,null,n&&wp.element.createElement("label",{className:"qodef-option-label"},n))),r&&wp.element.createElement("p",{className:"qodef-option-description"},r),b?wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("div",{className:"qodef-image-option-inner"},(0,Me.isBlobURL)(b)&&wp.element.createElement("div",{className:"qodef-image-option-spinner"},wp.element.createElement(u.Spinner,null)),wp.element.createElement(i.MediaUploadCheck,null,wp.element.createElement(i.MediaUpload,{allowedTypes:a,value:m,onSelect:this.onSelectImage,render:({open:t})=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("img",{src:b,alt:d}),wp.element.createElement("div",{className:"qodef-image-option-actions"},wp.element.createElement(u.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Edit Image","qi-blocks"),onClick:t}),wp.element.createElement(u.Button,{icon:"trash",showTooltip:!0,label:(0,e.__)("Remove Image","qi-blocks"),onClick:this.removeImage})))}))),o.imageSizeNotExist&&wp.element.createElement("p",{className:"qodef-image-notice"},(0,e.__)("The Image has no predefined sizes, please set a custom image size.","qi-blocks")),o.externalImageIsSet&&wp.element.createElement("p",{className:"qodef-image-notice"},(0,e.__)("External image URL is set, please upload your image for this Element.","qi-blocks"))):wp.element.createElement(i.MediaPlaceholder,{allowedTypes:a,icon:"format-image",onSelect:this.onSelectImage,onSelectURL:this.onSelectURL,onError:this.onUploadError,notices:l}),c&&m&&!f&&wp.element.createElement("div",{className:"qodef-image-option-sizes"},wp.element.createElement(u.SelectControl,{label:(0,e.__)("Image Size","qi-blocks"),options:this.getImageSizes(),onChange:this.onImageSizeChange,value:void 0!==p.custom_image_size?p.custom_image_size:b})))}}Ht.defaultProps={label:(0,e.__)("Image","qi-blocks"),help:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},allowedTypes:["image"],allowScreens:!1,allowDefaultImage:!1,allowImageSizes:!1,customImageSizes:[],repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!0,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Ft=(0,O.withSelect)(e=>({imageSizes:e("core/block-editor")?.getSettings()?.imageSizes}))((0,u.withNotices)(Ht));class zt extends c.Component{constructor(){super(...arguments),this.state={isPickerVisible:!1}}getAttributeValue(){const{defaultColor:e,blockAttributeKey:t,blockAttributes:o,repeater:n,repeaterItemIndex:r,repeaterItemKey:l,isSimpleRepeaterValue:a,repeaterGetAttributes:i}=this.props;let s=o[t];return n&&(s=i({key:l,childKey:a?"":t},r)),s||e}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:o,repeater:n,repeaterItemIndex:r,repeaterItemKey:l,isSimpleRepeaterValue:a,repeaterSetAttributes:i}=this.props;n?i({key:l,childKey:a?"":t},e,r):o({[t]:e})}onChange=e=>{const{r:t,g:o,b:n,a:r}=e.rgb;let l="rgba("+[t,o,n,r].join(",")+")";this.props.setHEXValue&&(l=e.hex),this.setState({colorReset:!0}),this.setAttributeValue(l)};onClick=e=>{e.preventDefault();const t=this;t.setState({isPickerVisible:!this.state.isPickerVisible}),window.addEventListener("click",e=>{const o=document.querySelectorAll(".qodef-color-option.qodef--opened");o.length&&o.forEach(o=>{o.contains(e.target)||t.setState({isPickerVisible:!1})})})};onResetColor=e=>{e.preventDefault(),this.setState({isPickerVisible:!this.state.isPickerVisible}),this.setAttributeValue("")};render(){const{label:t,popup:o}=this.props;return wp.element.createElement(u.BaseControl,{className:"qodef-color-option "+(this.state.isPickerVisible?"qodef--opened":"")},wp.element.createElement("div",{className:"qodef-control-heading"},t&&wp.element.createElement("label",{className:"qodef-option-label"},t),wp.element.createElement(u.Button,{onClick:this.onClick,className:"qodef-color-indicator-button"},wp.element.createElement(u.ColorIndicator,{colorValue:this.getAttributeValue(),className:"qodef-color-indicator"}))),this.state.isPickerVisible&&wp.element.createElement("div",{className:`qodef-color-picker-wrapper ${o&&"qodef--popup"}`},wp.element.createElement(u.ColorPicker,{color:this.getAttributeValue(),onChangeComplete:this.onChange,disableAlpha:this.props.setHEXValue}),wp.element.createElement(u.Button,{onClick:this.onResetColor,isSecondary:!0},(0,e.__)("Reset Color","qi-blocks"))))}}zt.defaultProps={label:(0,e.__)("Color","qi-blocks"),defaultColor:"#000",setHEXValue:!1,blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},popup:!0,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!1,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Kt=zt;class Gt extends c.Component{getAttributeValue(){const{blockAttributeKey:e,blockAttributes:t,repeater:o,repeaterItemIndex:n,repeaterItemKey:r,repeaterGetAttributes:l}=this.props;let a=t[e];return o&&(a=l({key:r},n)||{}),be(a)}setAttributeValue(e){const{blockAttributeKey:t,setAttributes:o,repeater:n,repeaterItemIndex:r,repeaterItemKey:l,repeaterSetAttributes:a}=this.props;n?a({key:l},e,r):o({[t]:e})}componentDidMount(){const{url:e,id:t}=this.getAttributeValue();e&&(0,Me.isBlobURL)(e)&&!t&&this.setAttributeValue({url:"",alt:""})}onSelectVideo=({id:e,url:t,alt:o})=>{this.setAttributeValue({id:e,url:t,alt:o})};onSelectURL=e=>{this.setAttributeValue({id:null,url:e,alt:""})};onUploadError=e=>{const{noticeOperations:t}=this.props;t.createErrorNotice(e)};removeVideo=()=>{this.setAttributeValue({id:null,url:"",alt:""})};render(){const t={...this.props},{label:o,description:n,noticeUI:r}=t,{id:l,url:a}=this.getAttributeValue();return wp.element.createElement(u.BaseControl,{className:"qodef-video-option"},o&&wp.element.createElement("label",{className:"qodef-option-label"},o),n&&wp.element.createElement("p",{className:"qodef-option-description"},n),a?wp.element.createElement("div",{className:"qodef-video-option-inner"},(0,Me.isBlobURL)(a)&&wp.element.createElement("div",{className:"qodef-video-option-spinner"},wp.element.createElement(u.Spinner,null)),wp.element.createElement(i.MediaUploadCheck,null,wp.element.createElement(i.MediaUpload,{allowedTypes:["video"],value:l,onSelect:this.onSelectVideo,render:({open:t})=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("video",{src:a}),wp.element.createElement("div",{className:"qodef-video-option-actions"},wp.element.createElement(u.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Edit Video","qi-blocks"),onClick:t}),wp.element.createElement(u.Button,{icon:"trash",showTooltip:!0,label:(0,e.__)("Remove Video","qi-blocks"),onClick:this.removeVideo})))}))):wp.element.createElement(i.MediaPlaceholder,{allowedTypes:["video"],icon:"format-video",onSelect:this.onSelectVideo,onSelectURL:this.onSelectURL,onError:this.onUploadError,notices:r}))}}Gt.defaultProps={label:(0,e.__)("Video","qi-blocks"),description:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Wt=(0,u.withNotices)(Gt),Yt=qiBlocksEditor.vars.defaultFontSize,Xt=qiBlocksEditor.vars.defaultLineHeight,Zt=e=>{const{convertorType:t,value:o,attributeKey:n}=e;let r=1;n.includes("FontSize")||n.includes("fontSize")?r=Yt:(n.includes("LineHeight")||n.includes("lineHeight"))&&(r=Xt);const l=e=>Math.round(parseInt(e,10)/r*100)/100,a=e=>Math.round(parseInt(e,10)/r*100)/100,i=e=>Math.round(parseFloat(e)/r*100),s=e=>Math.round(100*parseInt(e,10)/window.innerWidth),c=e=>Math.round(100*parseInt(e,10)/window.innerHeight),u=e=>Math.round(parseFloat(e)*r),p=e=>Math.round(parseFloat(e)*r/100),m=e=>Math.round(window.innerWidth*parseInt(e,10)/100),b=e=>Math.round(window.innerHeight*parseInt(e,10)/100);let d="";if(""!==o&&""!==n&&""!==t)switch(t){case"pxToEm":d=l(o);break;case"pxToRem":d=a(o);break;case"pxToP":d=i(o);break;case"pxToVw":d=s(o);break;case"pxToVh":d=c(o);break;case"emToPx":d=u(o);break;case"emToRem":case"remToRem":case"vwToVh":case"vhToVw":d=o;break;case"emToP":case"remToP":d=(e=>100*parseFloat(e))(o);break;case"emToVw":case"remToVw":d=(e=>s(u(e)))(o);break;case"emToVh":case"remToVh":d=(e=>c(u(e)))(o);break;case"remToPx":d=(e=>Math.round(parseFloat(e)*r))(o);break;case"pToPx":d=p(o);break;case"pToEm":case"pToRem":d=(e=>parseFloat(e)/100)(o);break;case"pToVw":d=(e=>s(p(e)))(o);break;case"pToVh":d=(e=>c(p(e)))(o);break;case"vwToPx":d=m(o);break;case"vwToEm":d=(e=>l(m(e)))(o);break;case"vwToRem":d=(e=>a(m(e)))(o);break;case"vwToP":d=(e=>i(m(e)))(o);break;case"vhToPx":d=b(o);break;case"vhToEm":d=(e=>l(b(e)))(o);break;case"vhToRem":d=(e=>a(b(e)))(o);break;case"vhToP":d=(e=>i(b(e)))(o)}return d};Zt.defaultProps={convertorType:"pxToEm"};const Qt=Zt;class Jt extends c.Component{constructor(){super(...arguments),this.state={screen:C()}}getScreenLabelSuffix(e){const t=e||this.state.screen;return ae(t)}getAttributeValue(e,t=""){const{blockAttributes:o,allowScreens:n,repeater:r,repeaterItemIndex:l,repeaterItemKey:a,repeaterGetAttributes:i}=this.props;let s=e;n&&t&&(s=e+t);let c=o[s];return r&&(c=i({key:a,childKey:s},l)),be(c)}setAttributeValue(e,t,o=this.getScreenLabelSuffix()){const{setAttributes:n,allowScreens:r,repeater:l,repeaterItemIndex:a,repeaterItemKey:i,repeaterSetAttributes:s}=this.props;let c=e;r&&o&&(c=e+o),l?s({key:i,childKey:c},t,a):n({[c]:t})}onChangeUnitsValues(e,t,o,n){const r={...this.props},{rangeMax:l,rangeDecimalMax:a,allowUnitsConvertor:i}=r;let s=this.getAttributeValue(t);const c=s;n?(s=parseInt(s,10),s>l&&(s=l)):!n&&s>a&&(s=a),i?["emToRem","remToEm","vwToVh","vhToVw"].includes(o)||(this.setAttributeValue(e,Qt({convertorType:o,value:c,attributeKey:t}),""),this.setAttributeValue(t,"","")):(this.setAttributeValue(e,s,""),this.setAttributeValue(t,"",""))}render(){const e={...this.props},{label:t,unitType:o,blockAttributeKey:n,rangeMax:r,rangeMin:l,rangeStep:a,rangeDecimalMax:i,rangeDecimalMin:s,rangeDecimalStep:c,optionType:p,allowReset:m,allowScreens:b,allowUnits:d,repeater:f,repeaterItemKey:g,isSimpleRepeaterValue:h}=e,k=this.getScreenLabelSuffix();let y=f&&!h?g:n;const v=`${y}Decimal`,_=`${y}Unit`,w=`${y}Tablet`,q=`${v}Tablet`,S=`${_}Tablet`,A=`${y}Mobile`,x=`${v}Mobile`,I=`${_}Mobile`;return e.onChangeScreen=e=>{this.setState({screen:e})},e.onChangeUnit=e=>{e.preventDefault();const t=f?200:0,o=e.target.getAttribute("data-unit"),n=this.getAttributeValue(_,k)||"px";this.setAttributeValue(_,o),setTimeout(()=>{if(o!==n){const e=`${n}To${le(o)}`;let t=y+k,r=v+k;"px"!==o&&(t=v+k,r=y+k),this.onChangeUnitsValues(t,r,e,"px"===o)}},t)},e.onChange=t=>{this.setAttributeValue(y,t),e.setCustomEventOnChange()},e.onChangeDecimal=t=>{let o=0;"decimal"===p&&void 0===t&&(o=200),setTimeout(()=>{this.setAttributeValue(v,t),e.setCustomEventOnChange()},o)},e.getPlaceholderValue=e=>{let t="";const o=this.getAttributeValue(y),n=this.getAttributeValue(v),r=this.getAttributeValue(w),l=this.getAttributeValue(q);return"Tablet"===k?e&&""===r?t=o:e||""!==l||(t=n):"Mobile"===k&&(e&&""===this.getAttributeValue(A)?t=""!==r?r:o:e||""!==this.getAttributeValue(x)||(t=""!==l?l:n)),t},wp.element.createElement(u.BaseControl,{className:"qodef-advanced-range-option"},wp.element.createElement("div",{className:"qodef-advanced-range-heading"},b?wp.element.createElement(Oe,{label:t,onChangeScreen:e.onChangeScreen}):wp.element.createElement("label",{className:"qodef-option-label"},t),d&&wp.element.createElement(Te,{unitType:o,unitValue:this.getAttributeValue(_,k),onChangeUnit:e.onChangeUnit})),"desktop"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(ce(this.getAttributeValue(_))&&"decimal"!==p||!d&&"integer"===p)&&wp.element.createElement(u.RangeControl,{min:l,max:r,step:a,value:this.getAttributeValue(y),onChange:e.onChange,allowReset:m}),(ue(this.getAttributeValue(_))||!d&&"decimal"===p)&&wp.element.createElement(u.RangeControl,{min:s,max:i,step:c,value:this.getAttributeValue(v),onChange:e.onChangeDecimal,allowReset:m})),"tablet"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(ce(this.getAttributeValue(S))&&"decimal"!==p||!d&&"integer"===p)&&wp.element.createElement(u.RangeControl,{min:l,max:r,step:a,value:this.getAttributeValue(w),afterIcon:e.getPlaceholderValue(!0),onChange:e.onChange,allowReset:m}),(ue(this.getAttributeValue(S))||!d&&"decimal"===p)&&wp.element.createElement(u.RangeControl,{min:s,max:i,step:c,value:this.getAttributeValue(q),afterIcon:e.getPlaceholderValue(!1),onChange:e.onChangeDecimal,allowReset:m})),"mobile"===this.state.screen&&wp.element.createElement(wp.element.Fragment,null,(ce(this.getAttributeValue(I))&&"decimal"!==p||!d&&"integer"===p)&&wp.element.createElement(u.RangeControl,{min:l,max:r,step:a,value:this.getAttributeValue(A),afterIcon:e.getPlaceholderValue(!0),onChange:e.onChange,allowReset:m}),(ue(this.getAttributeValue(I))||!d&&"decimal"===p)&&wp.element.createElement(u.RangeControl,{min:s,max:i,step:c,value:this.getAttributeValue(x),afterIcon:e.getPlaceholderValue(!1),onChange:e.onChangeDecimal,allowReset:m})))}}Jt.defaultProps={label:(0,e.__)("Default Label Text","qi-blocks"),unitType:"typography",blockAttributes:{},blockAttributeKey:"",setAttributes:()=>{},rangeMax:300,rangeMin:0,rangeStep:1,rangeDecimalMax:10,rangeDecimalMin:0,rangeDecimalStep:.01,optionType:"integer",allowReset:!0,screens:x,allowScreens:!1,allowUnits:!0,allowUnitsConvertor:!1,setCustomEventOnChange:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",isSimpleRepeaterValue:!1,repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const eo=Jt,to=t=>{const o={...t},{attrNameTemplate:n,attrName:r,blockAttributes:l,setAttributes:a,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m,previewScreen:b}=o,d=r||"Background",f=e=>re(n,d+e);o.getAttributeValue=(e,t="")=>{let o=e;t&&(o=e+t);let n=l[o];return i&&(n=m({key:c,childKey:o},s)),be(n)},o.setAttributeValue=(e,t,o="")=>{let n=e;o&&(n=e+o),i?p({key:c,childKey:n},t,s):a({[n]:t})};let g=ae(b||C());return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ft,{label:(0,e.__)(`${d} Image`,"qi-blocks"),blockAttributeKey:f("Image"),blockAttributes:l,setAttributes:a,allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,isSimpleRepeaterValue:!1,repeaterSetAttributes:p,repeaterGetAttributes:m}),o.getAttributeValue(f("Image"))&&o.getAttributeValue(f("Image")).url&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Re,{label:(0,e.__)(`${d} Position`,"qi-blocks"),blockAttributeKey:f("Position"),blockAttributes:l,setAttributes:a,selectOptions:de("background_position",!0,[{value:"custom",label:(0,e.__)("Custom","qi-blocks")}]),repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}),(""===g&&"custom"===o.getAttributeValue(f("Position"))||""!==g&&"custom"===o.getAttributeValue(f("Position"),g)||""!==g&&"custom"===o.getAttributeValue(f("Position"))&&["","custom"].includes(o.getAttributeValue(f("Position"),"Tablet"))&&""===o.getAttributeValue(f("Position"),g))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(eo,{label:(0,e.__)("X Position","qi-blocks"),blockAttributeKey:f("XPosition"),setAttributes:a,blockAttributes:l,rangeMax:800,rangeMin:-800,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"xPosition",allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(eo,{label:(0,e.__)("Y Position","qi-blocks"),blockAttributeKey:f("YPosition"),setAttributes:a,blockAttributes:l,rangeMax:800,rangeMin:-800,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"yPosition",allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m})),wp.element.createElement(u.SelectControl,{label:(0,e.__)(`${d} Attachment`,"qi-blocks"),value:o.getAttributeValue(f("Attachment")),options:de("background_attachment")||"",onChange:e=>o.setAttributeValue(f("Attachment"),e)}),wp.element.createElement(Re,{label:(0,e.__)(`${d} Repeat`,"qi-blocks"),blockAttributeKey:f("Repeat"),blockAttributes:l,setAttributes:a,selectOptions:de("background_repeat"),repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(Re,{label:(0,e.__)(`${d} Size`,"qi-blocks"),blockAttributeKey:f("Size"),blockAttributes:l,setAttributes:a,selectOptions:de("background_size",!0,[{value:"custom",label:(0,e.__)("Custom","qi-blocks")}]),repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}),"custom"===o.getAttributeValue(f("Size"),g)&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(eo,{label:(0,e.__)("Custom Width","qi-blocks"),blockAttributeKey:f("SizeWidth"),setAttributes:a,blockAttributes:l,rangeMax:1e3,rangeMin:0,rangeDecimalMax:100,rangeDecimalMin:0,unitType:"xPosition",allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}))))};to.defaultProps={attrNameTemplate:"",attrName:"Background",blockAttributes:{},setAttributes:()=>{},repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{},previewScreen:""};const oo=to,no=t=>{const o={...t},{attrNameTemplate:n,blockAttributes:r,setAttributes:l,includeVideoBG:a,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m,previewScreen:b}=o,d=e=>re(n,e);o.getAttributeValue=(e,t="")=>{let o=r[e];if(i){let n=e;t&&(n=e+t),o=m({key:c,childKey:n},s)}return be(o)},o.setAttributeValue=(e,t,o="")=>{if(i){let n=e;o&&(n=e+o),p({key:c,childKey:n},t,s)}else l({[e+o]:t})};const f=[{label:(0,e.__)("Classic","qi-blocks"),value:""},{label:(0,e.__)("Gradient","qi-blocks"),value:"gradient"}];return a&&f.push({label:(0,e.__)("Video","qi-blocks"),value:"video"}),wp.element.createElement("div",{className:"qodef-background-panel"},wp.element.createElement(u.SelectControl,{label:(0,e.__)("Background Type","qi-blocks"),value:o.getAttributeValue(d("BackgroundType")),options:f,onChange:e=>o.setAttributeValue(d("BackgroundType"),e)}),""===o.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Kt,{label:(0,e.__)("Background Color","qi-blocks"),blockAttributeKey:d("BackgroundColor"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(oo,{attrNameTemplate:n,blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m,previewScreen:b})),"gradient"===o.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Kt,{label:(0,e.__)("First Color","qi-blocks"),blockAttributeKey:d("BackgroundGradientColor1"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(u.RangeControl,{label:(0,e.__)("Location","qi-blocks"),value:o.getAttributeValue(d("BackgroundGradientLocation1")),onChange:e=>o.setAttributeValue(d("BackgroundGradientLocation1"),e),min:0,max:100,step:1}),wp.element.createElement(Kt,{label:(0,e.__)("Second Color","qi-blocks"),blockAttributeKey:d("BackgroundGradientColor2"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(u.RangeControl,{label:(0,e.__)("Location","qi-blocks"),value:o.getAttributeValue(d("BackgroundGradientLocation2")),onChange:e=>o.setAttributeValue(d("BackgroundGradientLocation2"),e),min:0,max:100,step:1}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Gradient Type","qi-blocks"),value:o.getAttributeValue(d("BackgroundGradientType")),options:[{label:(0,e.__)("Linear","qi-blocks"),value:"linear"},{label:(0,e.__)("Radial","qi-blocks"),value:"radial"}],onChange:e=>o.setAttributeValue(d("BackgroundGradientType"),e)}),"linear"===o.getAttributeValue(d("BackgroundGradientType"))&&wp.element.createElement(u.RangeControl,{label:(0,e.__)("Angle","qi-blocks"),value:o.getAttributeValue(d("BackgroundGradientTypeAngle")),onChange:e=>o.setAttributeValue(d("BackgroundGradientTypeAngle"),e),min:0,max:360,step:1}),"radial"===o.getAttributeValue(d("BackgroundGradientType"))&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Position","qi-blocks"),value:o.getAttributeValue(d("BackgroundGradientTypePosition")),options:de("background_position",!1),onChange:e=>o.setAttributeValue(d("BackgroundGradientTypePosition"),e)})),"video"===o.getAttributeValue(d("BackgroundType"))&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Wt,{label:(0,e.__)("Video Link","qi-blocks"),description:(0,e.__)("Self hosted video file (mp4 is recommended)","qi-blocks"),blockAttributeKey:d("BackgroundVideoLink"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(u.TextControl,{type:"number",label:(0,e.__)("Start Time","qi-blocks"),help:(0,e.__)("Specify a start time (in seconds)","qi-blocks"),value:o.getAttributeValue(d("BackgroundVideoStartTime")),onChange:e=>o.setAttributeValue(d("BackgroundVideoStartTime"),pe(e))}),wp.element.createElement(u.TextControl,{type:"number",label:(0,e.__)("End Time","qi-blocks"),help:(0,e.__)("Specify an end time (in seconds)","qi-blocks"),value:o.getAttributeValue(d("BackgroundVideoEndTime")),onChange:e=>o.setAttributeValue(d("BackgroundVideoEndTime"),pe(e))}),wp.element.createElement(N,{label:(0,e.__)("Play Once","qi-blocks"),blockAttributeKey:d("BackgroundVideoPlayOnce"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(N,{label:(0,e.__)("Play On Mobile","qi-blocks"),blockAttributeKey:d("BackgroundVideoPlayOnMobile"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}),wp.element.createElement(Ft,{label:(0,e.__)("Background Fallback","qi-blocks"),blockAttributeKey:d("BackgroundVideoFallbackImage"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m})))};no.defaultProps={attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},includeVideoBG:!1,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{},previewScreen:""};const ro=no,lo=t=>{const o={...t},{attrNameTemplate:n,blockAttributes:r,setAttributes:l,disableWidthDirections:a,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}=o,b=e=>re(n,e);return o.getAttributeValue=(e,t="")=>{let o=r[e];if(i){let n=e;t&&(n=e+t),o=m({key:c,childKey:n},s)}return be(o)},o.setAttributeValue=(e,t,o="")=>{if(i){let n=e;o&&(n=e+o),p({key:c,childKey:n},t,s)}else l({[e+o]:t})},wp.element.createElement("div",{className:"qodef-border-panel"},wp.element.createElement(u.SelectControl,{label:(0,e.__)("Border Type","qi-blocks"),value:o.getAttributeValue(b("BorderStyle")),options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("None","qi-blocks"),value:"none"},{label:(0,e.__)("Double","qi-blocks"),value:"double"},{label:(0,e.__)("Groove","qi-blocks"),value:"groove"},...de("border_style",!1)],onChange:e=>o.setAttributeValue(b("BorderStyle"),e)}),!["","none"].includes(r[b("BorderStyle")])&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ne,{label:(0,e.__)("Border Width","qi-blocks"),attrName:b("BorderWidth"),blockAttributes:r,setAttributes:l,allowUnitControl:!1,disableDirections:a,rangeMax:20,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}),(o.allowBorderColor??!0)&&wp.element.createElement(Kt,{label:(0,e.__)("Border Color","qi-blocks"),blockAttributeKey:b("BorderColor"),blockAttributes:r,setAttributes:l,repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m})),(o.allowBorderRadius??!0)&&wp.element.createElement(Ne,{label:(0,e.__)("Border Radius","qi-blocks"),attrName:b("BorderRadius"),blockAttributes:r,setAttributes:l,unitType:"pxAndPercent",repeater:i,repeaterItemIndex:s,repeaterItemKey:c,repeaterSetAttributes:p,repeaterGetAttributes:m}))};lo.defaultProps={attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},allowBorderColor:!0,allowBorderRadius:!0,disableWidthDirections:[],repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const ao=lo,io=t=>{const o={...t},{attrNameTemplate:n,blockAttributes:r,setAttributes:l,excludeOptions:a}=o,i=e=>re(n,e),[s,p]=(0,c.useState)(!1);let m=["qodef-box-shadow-panel"];return o.popup&&m.push("qodef--has-popup"),s&&m.push("qodef--opened"),o.onClick=()=>{p(e=>!e),window.addEventListener("click",e=>{const t=document.querySelectorAll(".qodef-box-shadow-panel.qodef--opened");t.length&&t.forEach(t=>{t.contains(e.target)||p(!1)})})},wp.element.createElement("div",{className:m.join(" ")},wp.element.createElement("div",{className:"qodef-box-shadow-panel-heading"},o.label&&wp.element.createElement("label",{className:"qodef-option-label"},o.label),o.popup&&wp.element.createElement(u.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Open Panel","qi-blocks"),onClick:o.onClick})),wp.element.createElement("div",{className:"qodef-box-shadow-panel-content"},wp.element.createElement(Kt,{label:(0,e.__)("Color","qi-blocks"),blockAttributeKey:i("BoxShadowColor"),blockAttributes:r,setAttributes:l,popup:!1}),wp.element.createElement(u.RangeControl,{label:(0,e.__)("Horizontal","qi-blocks"),value:r[i("BoxShadowHorizontal")],onChange:e=>l({[i("BoxShadowHorizontal")]:e}),min:-100,max:100,step:1,allowReset:!0}),wp.element.createElement(u.RangeControl,{label:(0,e.__)("Vertical","qi-blocks"),value:r[i("BoxShadowVertical")],onChange:e=>l({[i("BoxShadowVertical")]:e}),min:-100,max:100,step:1,allowReset:!0}),wp.element.createElement(u.RangeControl,{label:(0,e.__)("Blur","qi-blocks"),value:r[i("BoxShadowBlur")],onChange:e=>l({[i("BoxShadowBlur")]:e}),min:0,max:100,step:1,allowReset:!0}),wp.element.createElement(u.RangeControl,{label:(0,e.__)("Spread","qi-blocks"),value:r[i("BoxShadowSpread")],onChange:e=>l({[i("BoxShadowSpread")]:e}),min:-100,max:100,step:1,allowReset:!0}),(b="position",!(a&&a.length&&a.includes(b))&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Position","qi-blocks"),value:r[i("BoxShadowPosition")],options:[{label:(0,e.__)("Outline","qi-blocks"),value:""},{label:(0,e.__)("Inset","qi-blocks"),value:"inset"}],onChange:e=>l({[i("BoxShadowPosition")]:e})}))));var b};io.defaultProps={label:(0,e.__)("Box Shadow","qi-blocks"),attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},excludeOptions:[],popup:!1};const so=io;class co extends c.Component{render(){const{blockAttributes:t,setAttributes:o,excludePanels:n,previewScreen:r,blockName:l}=this.props,a=(e,t="")=>re("",e,t),i=J();n&&n.length&&n.forEach(e=>{i.splice(i.indexOf(e),1)});let s=ae(r);return wp.element.createElement("div",{className:"qodef-advanced-panel"},i.includes("advanced")&&wp.element.createElement(u.PanelBody,{title:(0,e.__)("Advanced","qi-blocks")},wp.element.createElement(Ne,{label:(0,e.__)("Margin","qi-blocks"),attrName:a("Margin"),blockAttributes:t,setAttributes:o}),wp.element.createElement(Ne,{label:(0,e.__)("Padding","qi-blocks"),attrName:a("Padding"),blockAttributes:t,setAttributes:o}),wp.element.createElement(u.TextControl,{type:"number",label:(0,e.__)("Z-Index","qi-blocks"),value:t[a("zIndex")],onChange:e=>o({[a("zIndex")]:pe(e)})}),wp.element.createElement(u.TextControl,{label:(0,e.__)("CSS ID","qi-blocks"),value:t[a("cssId")],onChange:e=>o({[a("cssId")]:e})}),wp.element.createElement(u.TextControl,{label:(0,e.__)("CSS Classes","qi-blocks"),value:t[a("cssClasses")],onChange:e=>o({[a("cssClasses")]:e})})),i.includes("motion-effects")&&wp.element.createElement(u.PanelBody,{title:(0,e.__)("Motion Effects","qi-blocks"),initialOpen:!1},wp.element.createElement(u.SelectControl,{label:(0,e.__)("Entrance Animation","qi-blocks"),value:t[a("EntranceAnimation")],options:[{label:(0,e.__)("None","qi-blocks"),value:""},{label:(0,e.__)("Back In Down","qi-blocks"),value:"backInDown"},{label:(0,e.__)("Back In Left","qi-blocks"),value:"backInLeft"},{label:(0,e.__)("Back In Right","qi-blocks"),value:"backInRight"},{label:(0,e.__)("Back In Up","qi-blocks"),value:"backInUp"},{label:(0,e.__)("Bounce","qi-blocks"),value:"bounce"},{label:(0,e.__)("Bounce In","qi-blocks"),value:"bounceIn"},{label:(0,e.__)("Bounce In Down","qi-blocks"),value:"bounceInDown"},{label:(0,e.__)("Bounce In Left","qi-blocks"),value:"bounceInLeft"},{label:(0,e.__)("Bounce In Right","qi-blocks"),value:"bounceInRight"},{label:(0,e.__)("Bounce In Up","qi-blocks"),value:"bounceInUp"},{label:(0,e.__)("Fade In","qi-blocks"),value:"fadeIn"},{label:(0,e.__)("Fade In Down","qi-blocks"),value:"fadeInDown"},{label:(0,e.__)("Fade In Down Big","qi-blocks"),value:"fadeInDownBig"},{label:(0,e.__)("Fade In Left","qi-blocks"),value:"fadeInLeft"},{label:(0,e.__)("Fade In Left Big","qi-blocks"),value:"fadeInLeftBig"},{label:(0,e.__)("Fade In Right","qi-blocks"),value:"fadeInRight"},{label:(0,e.__)("Fade In Right Big","qi-blocks"),value:"fadeInRightBig"},{label:(0,e.__)("Fade In Up","qi-blocks"),value:"fadeInUp"},{label:(0,e.__)("Fade In Up Big","qi-blocks"),value:"fadeInUpBig"},{label:(0,e.__)("Fade In Top Left","qi-blocks"),value:"fadeInTopLeft"},{label:(0,e.__)("Fade In Top Right","qi-blocks"),value:"fadeInTopRight"},{label:(0,e.__)("Fade In Bottom Left","qi-blocks"),value:"fadeInBottomLeft"},{label:(0,e.__)("Fade In Bottom Right","qi-blocks"),value:"fadeInBottomRight"},{label:(0,e.__)("Flash","qi-blocks"),value:"flash"},{label:(0,e.__)("Flip","qi-blocks"),value:"flip"},{label:(0,e.__)("Flip In X","qi-blocks"),value:"flipInX"},{label:(0,e.__)("Flip In Y","qi-blocks"),value:"flipInY"},{label:(0,e.__)("Head Shake","qi-blocks"),value:"headShake"},{label:(0,e.__)("Heart Beat","qi-blocks"),value:"heartBeat"},{label:(0,e.__)("Jack In The Box","qi-blocks"),value:"jackInTheBox"},{label:(0,e.__)("Jello","qi-blocks"),value:"jello"},{label:(0,e.__)("Light Speed In Right","qi-blocks"),value:"lightSpeedInRight"},{label:(0,e.__)("Light Speed In Left","qi-blocks"),value:"lightSpeedInLeft"},{label:(0,e.__)("Pulse","qi-blocks"),value:"pulse"},{label:(0,e.__)("Roll In","qi-blocks"),value:"rollIn"},{label:(0,e.__)("Rotate In","qi-blocks"),value:"rotateIn"},{label:(0,e.__)("Rotate In Down Left","qi-blocks"),value:"rotateInDownLeft"},{label:(0,e.__)("Rotate In Down Right","qi-blocks"),value:"rotateInDownRight"},{label:(0,e.__)("Rotate In Up Left","qi-blocks"),value:"rotateInUpLeft"},{label:(0,e.__)("Rotate In Up Right","qi-blocks"),value:"rotateInUpRight"},{label:(0,e.__)("Rubber Band","qi-blocks"),value:"rubberBand"},{label:(0,e.__)("Shake X","qi-blocks"),value:"shakeX"},{label:(0,e.__)("Shake Y","qi-blocks"),value:"shakeY"},{label:(0,e.__)("Slide In Down","qi-blocks"),value:"slideInDown"},{label:(0,e.__)("Slide In Left","qi-blocks"),value:"slideInLeft"},{label:(0,e.__)("Slide In Right","qi-blocks"),value:"slideInRight"},{label:(0,e.__)("Slide In Up","qi-blocks"),value:"slideInUp"},{label:(0,e.__)("Swing","qi-blocks"),value:"swing"},{label:(0,e.__)("Tada","qi-blocks"),value:"tada"},{label:(0,e.__)("Wobble","qi-blocks"),value:"wobble"},{label:(0,e.__)("Zoom In","qi-blocks"),value:"zoomIn"},{label:(0,e.__)("Zoom In Down","qi-blocks"),value:"zoomInDown"},{label:(0,e.__)("Zoom In Left","qi-blocks"),value:"zoomInLeft"},{label:(0,e.__)("Zoom In Right","qi-blocks"),value:"zoomInRight"},{label:(0,e.__)("Zoom In Up","qi-blocks"),value:"zoomInUp"}],onChange:e=>{o({[a("EntranceAnimation")]:e}),setTimeout(()=>{qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(t.uniqueClass)},300)}}),void 0!==t[a("EntranceAnimation")]&&""!==t[a("EntranceAnimation")]&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(u.SelectControl,{label:(0,e.__)("Animation Duration","qi-blocks"),value:t[a("EntranceAnimationDuration")],options:[{label:(0,e.__)("Slower","qi-blocks"),value:"slower"},{label:(0,e.__)("Slow","qi-blocks"),value:"slow"},{label:(0,e.__)("Normal","qi-blocks"),value:"normal"},{label:(0,e.__)("Fast","qi-blocks"),value:"fast"},{label:(0,e.__)("Faster","qi-blocks"),value:"faster"}],onChange:e=>{o({[a("EntranceAnimationDuration")]:e}),setTimeout(()=>{qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(t.uniqueClass)},300)}}),wp.element.createElement(u.TextControl,{type:"number",label:(0,e.__)("Animation Delay (ms)","qi-blocks"),value:t[a("EntranceAnimationDelay")],min:0,step:100,onChange:e=>{o({[a("EntranceAnimationDelay")]:pe(e)}),qiBlocksEditor.qodefTriggerBlockAnimation.triggerAnimation(t.uniqueClass,!0)}}))),i.includes("background")&&wp.element.createElement(u.PanelBody,{title:(0,e.__)("Background","qi-blocks"),initialOpen:!1},wp.element.createElement(ro,{attrNameTemplate:"Advanced",blockAttributes:t,setAttributes:o,previewScreen:r})),i.includes("border")&&wp.element.createElement(u.PanelBody,{title:(0,e.__)("Border","qi-blocks"),initialOpen:!1},wp.element.createElement(ao,{attrNameTemplate:"Advanced",blockAttributes:t,setAttributes:o}),wp.element.createElement(so,{attrNameTemplate:"Advanced",blockAttributes:t,setAttributes:o,popup:!0})),i.includes("positioning")&&wp.element.createElement(u.PanelBody,{title:(0,e.__)("Positioning","qi-blocks"),initialOpen:!1},wp.element.createElement(Re,{label:(0,e.__)("Width","qi-blocks"),blockAttributeKey:a("BlockWidth"),blockAttributes:t,setAttributes:o,selectOptions:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Full Width (100%)","qi-blocks"),value:"full-width"},{label:(0,e.__)("Inline (auto)","qi-blocks"),value:"inline"},{label:(0,e.__)("Custom","qi-blocks"),value:"custom"}]}),(""===s&&"custom"===t[a("BlockWidth")]||""!==s&&"custom"===t[a("BlockWidth",s)]||""!==s&&"custom"===t[a("BlockWidth")]&&["","custom"].includes(t[a("BlockWidth","Tablet")])&&""===t[a("BlockWidth",s)])&&wp.element.createElement(eo,{label:(0,e.__)("Custom Width","qi-blocks"),blockAttributeKey:a("BlockCustomWidth"),setAttributes:o,blockAttributes:t,rangeMax:1e3,rangeDecimalMax:100,unitType:"pxPercentVw",allowScreens:!0}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Position","qi-blocks"),value:t[a("BlockPosition")],options:[{label:(0,e.__)("Default","qi-blocks"),value:""},{label:(0,e.__)("Absolute","qi-blocks"),value:"absolute"},{label:(0,e.__)("Relative","qi-blocks"),value:"relative"},{label:(0,e.__)("Fixed","qi-blocks"),value:"fixed"}],onChange:e=>{o({[a("BlockPosition")]:e})}}),""!==t[a("BlockPosition")]&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(u.SelectControl,{label:(0,e.__)("Horizontal Orientation","qi-blocks"),value:t[a("PositionHorizontalOrientation")],options:[{label:(0,e.__)("Left","qi-blocks"),value:"left"},{label:(0,e.__)("Right","qi-blocks"),value:"right"}],onChange:e=>o({[a("PositionHorizontalOrientation")]:e})}),wp.element.createElement(eo,{label:(0,e.__)("Offset","qi-blocks"),blockAttributeKey:a("PositionHorizontalOffset"),setAttributes:o,blockAttributes:t,rangeMax:1e3,rangeMin:-1e3,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"measure",allowScreens:!0}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Vertical Orientation","qi-blocks"),value:t[a("PositionVerticalOrientation")],options:[{label:(0,e.__)("Top","qi-blocks"),value:"Top"},{label:(0,e.__)("Bottom","qi-blocks"),value:"bottom"}],onChange:e=>o({[a("PositionVerticalOrientation")]:e})}),wp.element.createElement(eo,{label:(0,e.__)("Offset","qi-blocks"),blockAttributeKey:a("PositionVerticalOffset"),setAttributes:o,blockAttributes:t,rangeMax:1e3,rangeMin:-1e3,rangeDecimalMax:100,rangeDecimalMin:-100,unitType:"measure",allowScreens:!0}))),i.includes("responsive")&&wp.element.createElement(u.PanelBody,{title:(0,e.__)("Responsive","qi-blocks"),initialOpen:!1},wp.element.createElement(R,{blockAttributes:t,setAttributes:o})),qiBlocksEditor.vars?.advancedBlockPanel&&wp.element.createElement(wp.element.Fragment,null,Object.entries(qiBlocksEditor.vars.advancedBlockPanel).map(([t,o],n)=>{let r="";if("help"===t?r=(0,e.__)("Help","qi-blocks"):"features"===t&&(r=(0,e.__)("Get more features","qi-blocks")),o.length<=0||"blocks"===t)return"";const a="help"===t,i=l?l.replace("qi-blocks/",""):"",s=o.map((o,n)=>{let r=o?.link;if(0===n&&"help"===t&&i){const e=qiBlocksEditor.vars.advancedBlockPanel?.blocks[i]||"";e&&e?.demo&&(r=e?.demo+"?utm_source=dash&utm_medium=qiblocks&utm_campaign=blocks")}return wp.element.createElement("div",{className:"qodef-m-item"},o?.image?wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("a",{className:"qodef-m-item-image-link",href:o?.link,target:"_blank",rel:"noreferrer"},wp.element.createElement("img",{className:"qodef-m-item-image",src:o.image,alt:o?.title})),wp.element.createElement("p",{className:"qodef-m-item-title"},o?.title),wp.element.createElement("a",{className:"qodef-m-item-button",href:o?.link,target:"_blank",rel:"noreferrer"},(0,e.__)("Upgrade","qi-blocks"))):wp.element.createElement("a",{className:"qodef-m-item-link",href:r,target:"_blank",rel:"noreferrer"},o?.title))});return wp.element.createElement(u.PanelBody,{title:r,className:`qodef-advanced-block-panel-features ${"qodef--"+t} qodef-m`,key:n,initialOpen:a},s)})))}}co.defaultProps={blockAttributes:{},setAttributes:()=>{},excludePanels:[],previewScreen:"desktop",blockName:""};const uo=(0,O.withSelect)(e=>{let t="desktop";return e("core/edit-post")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-post")?.__experimentalGetPreviewDeviceType()?.toLowerCase()),e("core/edit-site")&&(t="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-site").__experimentalGetPreviewDeviceType().toLowerCase()),{previewScreen:t,blockName:e("core/block-editor")?.getSelectedBlock()?.name}})(co);class po extends c.Component{render(){const{attrNameTemplate:t,blockAttributes:o,setAttributes:n,allowColumnsGap:r,allowColumnsGapSlider:l,allowColumnsResponsive:a,columnsMinNumber:i,columnsMaxNumber:s}=this.props,c=e=>re(t,e);return wp.element.createElement(u.BaseControl,null,wp.element.createElement(eo,{label:(0,e.__)("Number of Columns","qi-blocks"),blockAttributeKey:c("Columns"),setAttributes:n,blockAttributes:o,rangeMax:s,rangeMin:i,allowUnits:!1}),r&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Columns Gap","qi-blocks"),options:de("column_gap",!1),value:o[c("ColumnsGap")]||"",onChange:e=>n({[c("ColumnsGap")]:e})}),l&&wp.element.createElement(eo,{label:(0,e.__)("Space Between Items","qi-blocks"),blockAttributeKey:c("SpaceBetweenItems"),setAttributes:n,blockAttributes:o,rangeMax:150,rangeMin:0,rangeStep:1,allowScreens:!0,unitType:"pxEmVw"}),a&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Columns Responsive","qi-blocks"),options:de("columns_responsive",!1),value:o[c("ColumnsResponsive")]||"",onChange:e=>n({[c("ColumnsResponsive")]:e})}),a&&"custom"===o[c("ColumnsResponsive")]&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(eo,{label:(0,e.__)("Number of Columns 1367px - 1440px","qi-blocks"),blockAttributeKey:c("Columns1440"),setAttributes:n,blockAttributes:o,rangeMax:s,rangeMin:i,allowUnits:!1}),wp.element.createElement(eo,{label:(0,e.__)("Number of Columns 1025px - 1366px","qi-blocks"),blockAttributeKey:c("Columns1366"),setAttributes:n,blockAttributes:o,rangeMax:s,rangeMin:i,allowUnits:!1}),wp.element.createElement(eo,{label:(0,e.__)("Number of Columns 769px - 1024px","qi-blocks"),blockAttributeKey:c("Columns1024"),setAttributes:n,blockAttributes:o,rangeMax:s,rangeMin:i,allowUnits:!1}),wp.element.createElement(eo,{label:(0,e.__)("Number of Columns 681px - 768px","qi-blocks"),blockAttributeKey:c("Columns768"),setAttributes:n,blockAttributes:o,rangeMax:s,rangeMin:i,allowUnits:!1}),wp.element.createElement(eo,{label:(0,e.__)("Number of Columns 481px - 680px","qi-blocks"),blockAttributeKey:c("Columns680"),setAttributes:n,blockAttributes:o,rangeMax:s,rangeMin:i,allowUnits:!1}),wp.element.createElement(eo,{label:(0,e.__)("Number of Columns 0 - 480px","qi-blocks"),blockAttributeKey:c("Columns480"),setAttributes:n,blockAttributes:o,rangeMax:s,rangeMin:i,allowUnits:!1})))}}po.defaultProps={attrNameTemplate:"",blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{},allowColumnsGap:!0,allowColumnsGapSlider:!1,allowColumnsResponsive:!0,columnsMinNumber:1,columnsMaxNumber:6};const mo=po;class bo extends c.Component{render(){const{attrNameTemplate:t,blockAttributes:o,setAttributes:n,postType:r}=this.props,l=e=>re(t,e);let a,i=[];return"post"===r?i=[{value:"category",label:(0,e.__)("Categories","qi-blocks")},{value:"post_tag",label:(0,e.__)("Tags","qi-blocks")}]:"product"===r&&(i=[{value:"product_cat",label:(0,e.__)("Product Category","qi-blocks")},{value:"product_tag",label:(0,e.__)("Product Tag","qi-blocks")},{value:"product_type",label:(0,e.__)("Product Type","qi-blocks")}]),a="product_cat"===r?[{value:"",label:(0,e.__)("No","qi-blocks")},{value:"taxIDs",label:(0,e.__)("Taxonomy IDs","qi-blocks")}]:[{value:"",label:(0,e.__)("No","qi-blocks")},{value:"id",label:(0,e.__)("Post IDs","qi-blocks")},{value:"tax",label:(0,e.__)("Taxonomy","qi-blocks")},{value:"author",label:(0,e.__)("Author Name","qi-blocks")}],wp.element.createElement(u.BaseControl,null,wp.element.createElement(u.RangeControl,{label:(0,e.__)("Posts per Page","qi-blocks"),value:o[l("PostsPerPage")],onChange:e=>n({[l("PostsPerPage")]:e}),min:-1,allowReset:!0,resetFallbackValue:9}),"id"!==o[l("AdditionalParams")]&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Order By","qi-blocks"),options:de("order_by"),value:o[l("OrderBy")]||"",onChange:e=>n({[l("OrderBy")]:e})}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Order","qi-blocks"),options:de("order"),value:o[l("Order")]||"",onChange:e=>n({[l("Order")]:e})}),"product_cat"===r&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Hide Empty","qi-blocks"),options:de("no_yes"),value:o[l("HideEmpty")]||"no",onChange:e=>n({[l("HideEmpty")]:e})}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Additional Params","qi-blocks"),options:a,value:o[l("AdditionalParams")]||"",onChange:e=>n({[l("AdditionalParams")]:e})}),""===o[l("AdditionalParams")]&&"product"===r&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Filter By","qi-blocks"),options:[{value:"",label:(0,e.__)("Default","qi-blocks")},{value:"on_sale",label:(0,e.__)("On Sale","qi-blocks")},{value:"featured",label:(0,e.__)("Featured","qi-blocks")},{value:"top_rated",label:(0,e.__)("Top Rated","qi-blocks")},{value:"best_selling",label:(0,e.__)("Best Selling","qi-blocks")}],value:o[l("FilterBy")]||"",onChange:e=>n({[l("FilterBy")]:e})}),"id"===o[l("AdditionalParams")]&&wp.element.createElement(u.TextControl,{label:(0,e.__)("Posts IDs","qi-blocks"),help:(0,e.__)("Separate post IDs with commas","qi-blocks"),value:o[l("PostIds")],onChange:e=>n({[l("PostIds")]:e})}),"tax"===o[l("AdditionalParams")]&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(u.SelectControl,{label:(0,e.__)("Taxonomy","qi-blocks"),value:o[l("Tax")],options:i,onChange:e=>n({[l("Tax")]:e})}),wp.element.createElement(u.TextControl,{label:(0,e.__)("Taxonomy Slug","qi-blocks"),value:o[l("TaxSlug")],onChange:e=>n({[l("TaxSlug")]:e})}),wp.element.createElement(u.TextControl,{label:(0,e.__)("Taxonomy IDs","qi-blocks"),help:(0,e.__)("Separate taxonomy IDs with commas","qi-blocks"),value:o[l("TaxIn")],onChange:e=>n({[l("TaxIn")]:e})})),"author"===o[l("AdditionalParams")]&&wp.element.createElement(u.TextControl,{label:(0,e.__)("Author Slug","qi-blocks"),value:o[l("AuthorSlug")],onChange:e=>n({[l("AuthorSlug")]:e})}),"taxIDs"===o[l("AdditionalParams")]&&wp.element.createElement(u.TextControl,{label:(0,e.__)("Taxonomy IDs","qi-blocks"),help:(0,e.__)("Separate taxonomy IDs with commas","qi-blocks"),value:o[l("TaxonomyIDs")],onChange:e=>n({[l("TaxonomyIDs")]:e})}))}}bo.defaultProps={attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},postType:"post"};const fo=bo;var go=o(2243),ho=o.n(go);let ko=[];const yo=qiBlocksEditor.vars.systemFontOptions,vo=e=>{let t=!0;return e||(t=!1),yo&&yo.map(({value:e})=>e).forEach(o=>{""!==o&&e===o&&(t=!1)}),t},_o=e=>{if(qiBlocksEditor.qodefGetCurrentBlockElement.getIframe()&&(ko=[]),ko.includes(e))return;const t=qiBlocksEditor.qodefGetCurrentBlockElement.getCurrentDocument();if(t&&vo(e)){const o=t.createElement("link");o.setAttribute("href",(e=>`https://fonts.googleapis.com/css?family=${e.replace(/ /g,"+")}:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&subset=latin-ext`)(e)),o.setAttribute("rel","stylesheet"),o.setAttribute("type","text/css"),t.querySelector("head").appendChild(o)}ko.push(e)},wo=qiBlocksEditor.vars.fontOptions,qo=e=>{const t=e.trim().toLowerCase(),o=t.length;return 0===o?[]:wo.filter(e=>!["System","Google"].includes(e.value)&&e.label.toLowerCase().slice(0,o)===t)},So=e=>e.value,Ao=e=>wp.element.createElement("div",{className:"qodef-font-family-autosuggest-option","data-label":e.value},e.label);class xo extends c.Component{constructor(){super(...arguments),this.state={value:"",suggestions:[]}}onChange=(e,{newValue:t})=>{let o=t;["System","Google"].includes(o)||(wo.some(e=>e.value.toLowerCase()===o.toLowerCase()&&(o=e.value,_o(o),!0)),this.props.setAttributes({[this.props.blockAttributeKey]:o}),this.setState({value:o}))};onSuggestionsFetchRequested=({value:e})=>{this.setState({suggestions:""===e?wo:qo(e)})};onSuggestionsClearRequested=()=>{this.setState({suggestions:[]})};shouldRenderSuggestions(){return!0}componentDidMount(){""!==this.props.blockAttributes.length&&this.setState({value:this.props.blockAttributes[this.props.blockAttributeKey]||"",suggestions:wo})}render(){const{label:e}=this.props,{value:t,suggestions:o}=this.state,n={value:t,type:"search",onChange:this.onChange};return wp.element.createElement(u.BaseControl,{className:"qodef-font-family-option"},wp.element.createElement("label",{className:"qodef-option-label"},e),wp.element.createElement("div",{className:"qodef-font-family-autosuggest"},wp.element.createElement(ho(),{suggestions:o,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,shouldRenderSuggestions:this.shouldRenderSuggestions,getSuggestionValue:So,renderSuggestion:Ao,inputProps:n})))}}xo.defaultProps={label:(0,e.__)("Font Family","qi-blocks"),blockAttributeKey:"",blockAttributes:{},setAttributes:()=>{}};const Io=xo,Co=t=>{const o={...t},{attrNameTemplate:n,blockAttributes:r,setAttributes:l,popup:a,repeater:i,repeaterItemIndex:s,repeaterItemKey:p,repeaterSetAttributes:m,repeaterGetAttributes:b,allowReset:d}=o,[f,g]=(0,c.useState)(!1);let h=["qodef-typography-panel"];a?h.push("qodef--has-popup"):h.push("qodef-base-section-label"),f&&h.push("qodef--opened"),o.onClick=()=>{g(e=>!e),window.addEventListener("click",e=>{const t=document.querySelectorAll(".qodef-typography-panel.qodef--opened");t.length&&t.forEach(t=>{t.contains(e.target)||g(!1)})})};const k=e=>re(n,e);return o.getAttributeValue=e=>{let t=r[e];return i&&(t=b({key:p,childKey:e},s)),be(t)},o.setAttributeValue=(e,t)=>{i?m({key:p,childKey:e},t,s):l({[e]:t})},wp.element.createElement(u.BaseControl,{label:a?"":o.label,className:h.join(" ")},a&&wp.element.createElement("div",{className:"qodef-typography-panel-heading"},wp.element.createElement("label",{className:"qodef-option-label"},o.label),wp.element.createElement(u.Button,{icon:"edit",showTooltip:!0,label:(0,e.__)("Open Typography","qi-blocks"),onClick:o.onClick})),wp.element.createElement("div",{className:"qodef-typography-panel-content"},wp.element.createElement(Io,{setAttributes:l,blockAttributes:r,blockAttributeKey:k("FontFamily"),repeater:i,repeaterItemIndex:s,repeaterItemKey:p,repeaterSetAttributes:m,repeaterGetAttributes:b}),wp.element.createElement(eo,{label:(0,e.__)("Font Size","qi-blocks"),blockAttributeKey:k("FontSize"),setAttributes:l,blockAttributes:r,rangeDecimalMax:20,allowScreens:!0,allowUnitsConvertor:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:p,isSimpleRepeaterValue:!0,repeaterSetAttributes:m,repeaterGetAttributes:b,allowReset:d}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Weight","qi-blocks"),options:de("font_weight"),value:o.getAttributeValue(k("FontWeight")),onChange:e=>o.setAttributeValue(k("FontWeight"),e)}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Transform","qi-blocks"),options:de("text_transform"),value:o.getAttributeValue(k("TextTransform")),onChange:e=>o.setAttributeValue(k("TextTransform"),e)}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Style","qi-blocks"),options:de("font_style"),value:o.getAttributeValue(k("FontStyle")),onChange:e=>o.setAttributeValue(k("FontStyle"),e)}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Decoration","qi-blocks"),options:de("text_decoration"),value:o.getAttributeValue(k("TextDecoration")),onChange:e=>o.setAttributeValue(k("TextDecoration"),e)}),wp.element.createElement(eo,{label:(0,e.__)("Line Height","qi-blocks"),setAttributes:l,blockAttributes:r,blockAttributeKey:k("LineHeight"),allowScreens:!0,allowUnitsConvertor:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:p,isSimpleRepeaterValue:!0,repeaterSetAttributes:m,repeaterGetAttributes:b,allowReset:d}),wp.element.createElement(eo,{label:(0,e.__)("Letter Spacing","qi-blocks"),setAttributes:l,blockAttributes:r,blockAttributeKey:k("LetterSpacing"),rangeMin:-10,rangeMax:30,rangeStep:.1,rangeDecimalMin:-10,unitType:"pxEmRem",allowScreens:!0,repeater:i,repeaterItemIndex:s,repeaterItemKey:p,isSimpleRepeaterValue:!0,repeaterSetAttributes:m,repeaterGetAttributes:b,allowReset:d})))};Co.defaultProps={label:(0,e.__)("Typography","qi-blocks"),attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},popup:!1,allowReset:!0,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Eo=Co;class To extends c.Component{getAttributeValue(e){const{blockAttributes:t,repeater:o,repeaterItemIndex:n,repeaterItemKey:r,repeaterGetAttributes:l}=this.props;let a=t[e];return o&&(a=l({key:r,childKey:e},n)),be(a)}setAttributeValue(e,t){const{setAttributes:o,repeater:n,repeaterItemIndex:r,repeaterItemKey:l,repeaterSetAttributes:a}=this.props;n?a({key:l,childKey:e},t,r):o({[e]:t})}render(){const{label:t,attrNameTemplate:o,blockAttributes:n,setAttributes:r,allowSize:l,allowColor:a,rangeMax:i,rangeDecimalMax:s,repeater:c,repeaterItemIndex:u,repeaterItemKey:p,repeaterSetAttributes:m,repeaterGetAttributes:b}=this.props,d=c?"":re(o,"Icon"),f=this.getAttributeValue(d);return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ft,{label:t,help:(0,e.__)("This option allows only SVG icons","qi-blocks"),blockAttributeKey:`${d}`,blockAttributes:n,setAttributes:r,allowedTypes:["image/svg+xml"],repeater:c,repeaterItemIndex:u,repeaterItemKey:p,repeaterSetAttributes:m,repeaterGetAttributes:b}),f&&f.html&&wp.element.createElement(wp.element.Fragment,null,l&&wp.element.createElement(eo,{label:(0,e.__)("Icon Size","qi-blocks"),blockAttributeKey:`${d}FontSize`,blockAttributes:n,setAttributes:r,allowScreens:!0,rangeMax:i,rangeDecimalMax:s,repeater:c,repeaterItemIndex:u,repeaterItemKey:p,repeaterSetAttributes:m,repeaterGetAttributes:b}),a&&wp.element.createElement(Kt,{label:(0,e.__)("Icon Color","qi-blocks"),blockAttributeKey:`${d}Color`,blockAttributes:n,setAttributes:r,repeater:c,repeaterItemIndex:u,repeaterItemKey:p,repeaterSetAttributes:m,repeaterGetAttributes:b})))}}To.defaultProps={label:"",attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{},allowSize:!0,allowColor:!0,rangeMax:200,rangeDecimalMax:10,repeater:!1,repeaterItemIndex:0,repeaterItemKey:"",repeaterSetAttributes:()=>{},repeaterGetAttributes:()=>{}};const Po=To,Oo=e=>{const{blockAttributes:t}=e,o=me(e,"all")&&e.attrNameTemplate||"",n=!me(e,"all")||(e.allowColumnsGap??!0);return m()("qodef-gutenberg-section","qodef--columns",{[`qodef-col-num--${t[re(o,"Columns")]}`]:t[re(o,"Columns")],[`qodef-gutter--${t[re(o,"ColumnsGap")]}`]:n&&t[re(o,"ColumnsGap")],[`qodef-responsive--${t[re(o,"ColumnsResponsive")]}`]:t[re(o,"ColumnsResponsive")],[`qodef-col-num--1440--${t[re(o,"Columns1440")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns1440")],[`qodef-col-num--1366--${t[re(o,"Columns1366")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns1366")],[`qodef-col-num--1024--${t[re(o,"Columns1024")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns1024")],[`qodef-col-num--768--${t[re(o,"Columns768")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns768")],[`qodef-col-num--680--${t[re(o,"Columns680")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns680")],[`qodef-col-num--480--${t[re(o,"Columns480")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns480")]})};Oo.defaultProps={attrNameTemplate:"",allowColumnsGap:!0};const Bo=e=>{const{blockAttributes:t}=e,o=me(e,"all")&&e.attrNameTemplate||"",n=!me(e,"all")||(e.isFixedMasonry??!0);return m()("qodef-gutenberg-section","qodef-gutenberg-masonry-layout","qodef--masonry",n?"qodef-items--fixed":"","qodef-row--no-bottom-space",{[`qodef-col-num--${t[re(o,"Columns")]}`]:t[re(o,"Columns")],[`qodef-gutter--${t[re(o,"ColumnsGap")]}`]:t[re(o,"ColumnsGap")],[`qodef-responsive--${t[re(o,"ColumnsResponsive")]}`]:t[re(o,"ColumnsResponsive")],[`qodef-col-num--1440--${t[re(o,"Columns1440")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns1440")],[`qodef-col-num--1366--${t[re(o,"Columns1366")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns1366")],[`qodef-col-num--1024--${t[re(o,"Columns1024")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns1024")],[`qodef-col-num--768--${t[re(o,"Columns768")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns768")],[`qodef-col-num--680--${t[re(o,"Columns680")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns680")],[`qodef-col-num--480--${t[re(o,"Columns480")]}`]:"custom"===t[re(o,"ColumnsResponsive")]&&t[re(o,"Columns480")]})};Bo.defaultProps={attrNameTemplate:""};const No=e=>{const{attrNameTemplate:t,attributes:o}=e,n=(e,o)=>re(t,e,o);if(!o)return{};let r={},l={},a={};return o[n("FontFamily")]&&(r.fontFamily=`'${o[n("FontFamily")]}'`),o[n("FontWeight")]&&(r.fontWeight=o[n("FontWeight")]),o[n("TextTransform")]&&(r.textTransform=o[n("TextTransform")]),o[n("FontStyle")]&&(r.fontStyle=o[n("FontStyle")]),o[n("TextDecoration")]&&(r.textDecoration=o[n("TextDecoration")]),Object.entries(x).map(([e])=>{let t=ae(e),i={};(o[n("FontSize",t)]||o[n("FontSizeDecimal",t)])&&(ce(o[n("FontSizeUnit",t)])&&o[n("FontSize",t)]?i.fontSize=parseInt(o[n("FontSize",t)],10)+o[n("FontSizeUnit",t)]:ue(o[n("FontSizeUnit",t)])&&o[n("FontSizeDecimal",t)]&&(i.fontSize=parseFloat(o[n("FontSizeDecimal",t)])+o[n("FontSizeUnit",t)])),(o[n("LineHeight",t)]||o[n("LineHeightDecimal",t)])&&(ce(o[n("LineHeightUnit",t)])&&o[n("LineHeight",t)]?i.lineHeight=parseInt(o[n("LineHeight",t)],10)+o[n("LineHeightUnit",t)]:ue(o[n("LineHeightUnit",t)])&&o[n("LineHeightDecimal",t)]&&(i.lineHeight=parseFloat(o[n("LineHeightDecimal",t)])+o[n("LineHeightUnit",t)])),""===be(o[n("LetterSpacing",t)])&&""===be(o[n("LetterSpacingDecimal",t)])||(ce(o[n("LetterSpacingUnit",t)])&&""!==be(o[n("LetterSpacing",t)])?i.letterSpacing=parseInt(o[n("LetterSpacing",t)],10)+o[n("LetterSpacingUnit",t)]:ue(o[n("LetterSpacingUnit",t)])&&""!==be(o[n("LetterSpacingDecimal",t)])&&(i.letterSpacing=parseFloat(o[n("LetterSpacingDecimal",t)])+o[n("LetterSpacingUnit",t)])),Object.keys(i).length>0&&Object.entries(i).map(([t,o])=>{switch(e){case"desktop":r[t]=o;break;case"tablet":l[t]=o;break;case"mobile":a[t]=o}})}),{desktop:r,tablet:l,mobile:a}};class Do extends c.Component{render(){const e={...this.props},{attrNameTemplate:t,setAttributes:o,blockAttributes:n}=e;return wp.element.createElement(Kt,{label:e.label,blockAttributeKey:re(t,"Color"),blockAttributes:n,setAttributes:o})}}Do.defaultProps={label:(0,e.__)("Color","qi-blocks"),attrNameTemplate:"",blockAttributes:{},setAttributes:()=>{}};const Ro=Do,Mo=e=>{const{blockAttributes:t,blockAttributeKey:o,blockAttributeCSSKey:n}=e;let r={};return t[o]&&(r[n]=t[o]),{desktop:r}},Lo=e=>{const{blockAttributes:t,repeater:o}=e,n=!me(e,"all")||(e.allowSize??!0),r=!me(e,"all")||(e.allowColor??!0);let l=me(e,"all")&&e.attrNameTemplate||"";l=o?"":re(l,"Icon");let i={},s={};return n&&(i=fe({blockAttrName:`${l}FontSize`,cssProp:"fontSize",attributes:t})),r&&(s=Mo({blockAttributes:t,blockAttributeKey:`${l}Color`,blockAttributeCSSKey:"color"})),a()(i,s)};Lo.defaultProps={allowSize:!0,allowColor:!0,attrNameTemplate:"Icon"};const jo=e=>{const{blockAttributes:t,attrNameTemplate:o}=e;let n={};return t[re(o,"BorderColor")]&&(n.borderColor=t[re(o,"BorderColor")]),t[re(o,"BackgroundColor")]&&(n.backgroundColor=t[re(o,"BackgroundColor")]),t[re(o,"Color")]&&(n.color=t[re(o,"Color")]),{desktop:n}},Vo=e=>{const{blockAttributes:t,attrNameTemplate:o}=e;let n={};return t[re(o,"BorderHoverColor")]&&(n.borderColor=t[re(o,"BorderHoverColor")]),t[re(o,"BackgroundHoverColor")]&&(n.backgroundColor=t[re(o,"BackgroundHoverColor")]),t[re(o,"HoverColor")]&&(n.color=t[re(o,"HoverColor")]),{desktop:n}},$o=(0,s.createHigherOrderComponent)(e=>class extends c.Component{static defaultProps={attributes:{}};componentDidMount(){(e=>{Object.keys(e).filter(e=>e.match(/fontfamily/i)).forEach(t=>{const o=e[t];o&&setTimeout(()=>{_o(o)},400)})})(this.props.attributes)}render(){return wp.element.createElement(e,this.props)}},"withGoogleFont"),Uo=$o,Ho=(0,s.createHigherOrderComponent)(e=>class extends c.Component{static defaultProps={clientId:"",attributes:{},setAttributes:()=>{}};componentDidMount(){const{clientId:e,attributes:t,setAttributes:o}=this.props;t.uniqueClass||o({uniqueClass:this.getNewUniqueClass(e)}),this.reInitUniqueClass(!0)}getNewUniqueClass(e){let t="qodef-block-";return this.props.isFullSiteEditor?t="qodef-template-block-":"widget"===this.props.postID&&(t="qodef-widget-block-"),`${t}${e.substring(0,8)}`}hasParent(e,t){let o=!1,n=e?.parentNode;for(;n;){let e=n;if(e&&e?.classList?.contains(t)){o=!0;break}if(!e?.parentNode)break;n=e.parentNode}return o}reInitUniqueClass(e){const{clientId:t,attributes:o,setAttributes:n,isFullSiteEditor:r}=this.props,{uniqueClass:l}=o,a=qiBlocksEditor.qodefGetCurrentBlockElement.getCurrentDocument(),i=this.getNewUniqueClass(t);let s=!1;if(r){if(l.includes("qodef-block")||l.includes("qodef-widget")){const e=a.querySelector(`.${l}`);if(e){this.hasParent(e,"wp-block-post-content")||(s=!0)}}e&&a.addEventListener("paste",()=>{s=!0})}!r&&l.includes("qodef-template-block")&&(s=!0),""!==l&&l!==i&&a.querySelectorAll(`.${l}`).length>1&&(s=!0),s&&n({uniqueClass:i})}render(){return this.reInitUniqueClass(),wp.element.createElement(e,this.props)}},"withUniqueClass"),Fo=Ho;function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},zo.apply(null,arguments)}let Ko=[],Go={family:[],weight:[],style:[]};const Wo=e=>{let t="";return Object.entries(e).map(([e,o])=>{if(e.match(/fontfamily/i)){const e=o.replace(/["']/g,"");!Ko.includes(e)&&vo(e)&&(Go.family.push(e),Ko.push(e))}e.match(/fontweight/i)&&Go.weight.push(parseInt(o,10)),e.match(/fontstyle/i)&&Go.style.push(o),t+=`${e.replace(/([A-Z])/g,(e,t,o)=>(o>0?"-":"")+e.toLowerCase())}: ${o};`}),t},Yo=(0,s.createHigherOrderComponent)(e=>class extends c.Component{addPageStyle(e){if(e){const t=this.postID;let o=this.getPageStyles||[],n={key:this.attributes.uniqueClass,values:[],fonts:[]};Ko=[],Go={family:[],weight:[],style:[]},e.forEach((l,a)=>{if(!Object.values(l.styles).every(e=>0===Object.keys(e).length)){const e=["widget","template"].includes(t)?"":`body[class*="-${t}"]`,o=`${e} ${l.selector}`,r=[];"string"!=typeof l.selector&&l.selector.forEach(t=>{t&&r.push(`${e} ${t}`)}),n.values.push({selector:r.length>1?r.join(","):o,styles:Wo(l.styles.desktop||""),tablet_styles:Wo(l.styles.tablet||""),mobile_styles:Wo(l.styles.mobile||""),custom_styles:l.custom_styles||[]}),n.fonts=Go}if(a===e.length-1)if(o&&o.length){let e=!1;o.map((t,l)=>{t.key===n.key&&(e=!0,n.values.length?r()(t.values,n.values)||(o[l].values=n.values,o[l].fonts=n.fonts):(o[l].values=[],o[l].fonts={family:[],weight:[],style:[]}))}),!e&&n.values.length&&o.push(n)}else"object"==typeof o&&Object.keys(o).length?(o=Object.values(o),o.push(n)):o.push(n);const i=o.filter(e=>e.values.length);qiBlocksEditor.vars.currentPageID=t,qiBlocksEditor.vars.currentPageStyles=i})}}render(){return wp.element.createElement(e,zo({},this.props,{addPageStyle:this.addPageStyle}))}},"withStyles"),Xo=(0,s.compose)((0,O.withSelect)(e=>{let t=e("core/editor")?.getCurrentPostId()||"widget";const o=!!e("core/edit-site");let n="desktop";return e("core/edit-post")&&(n="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-post")?.__experimentalGetPreviewDeviceType()?.toLowerCase()),o&&(t="template",n="function"==typeof e("core/editor")?.getDeviceType?e("core/editor")?.getDeviceType()?.toLowerCase():e("core/edit-site").__experimentalGetPreviewDeviceType().toLowerCase()),{previewScreen:n,postID:t,getPageStyles:e("qi-blocks/data/with-styles").getOptions(t).data,isFullSiteEditor:o}}),Fo,Yo);var Zo=o(9066);class Qo extends c.Component{constructor(){super(...arguments),this.state={listLoading:!1}}fetchApiData=e=>{this.setState({listLoading:!0});const{attributes:t,setAttributes:o}=this.props,n={inheritGlobalQuery:t.inheritGlobalQuery,additionalParams:t.additionalParams,authorSlug:t.authorSlug,order:t.order,orderBy:t.orderBy,postIds:t.postIds,postsPerPage:t.postsPerPage,tax:t.tax,taxIn:t.taxIn,taxSlug:t.taxSlug,imagesProportion:t.imagesProportion,customImageWidth:t.customImageWidth||0,customImageHeight:t.customImageHeight||0,excerptLength:t.excerptLength};f()({method:"POST",path:"/qi-blocks/v1/get-blog-posts",data:{queryAttributes:n}}).then(t=>{this.setState({listLoading:!1}),"success"===t.status&&(o({queriedPostsData:t.data.queriedPostsData}),o({maxNumPages:t.data.maxNumPages}),setTimeout(()=>{"mount"===e?this.initBlockScript():this.initBlockScript("reinit")},400))})};componentDidMount(){this.setState({listLoading:!0}),this.fetchApiData("mount")}componentDidUpdate(e){const{attributes:t}=this.props;(r()(e.attributes.imagesProportion,t.imagesProportion)||"custom"===t.imagesProportion)&&r()(e.attributes.excerptLength,t.excerptLength)||this.fetchApiData(),r()(e.attributes,t)||(r()(e.attributes.behavior,t.behavior)?this.initBlockScript("reinit"):this.initBlockScript())}initBlockScript(e){"object"==typeof qiBlocksEditor.qodefMasonryLayout&&qiBlocksEditor.qodefMasonryLayout.initItem(this.props.attributes.uniqueClass,e),"object"==typeof Zo.A&&Zo.A.init()}render(){const{attributes:t,setAttributes:o,previewScreen:n}=this.props,{uniqueClass:r,buttonIcon:l,inheritGlobalQuery:s,queriedPostsData:c,maxNumPages:p}=t,b=()=>c&&c.length>0?c.map(e=>{let o="";return e.featuredImage||"info-on-image"!==t.itemLayout||(o="qodef-without-image"),wp.element.createElement("article",{className:m()(e.blogItemClasses,"qodef-e qodef-gutenberg-column",o),key:e.postID},["boxed","date-boxed"].includes(t.itemLayout)&&wp.element.createElement("div",{className:"qodef-e-inner"},"no"!==t.showMedia&&""!==e.featuredImage&&wp.element.createElement("div",{className:"qodef-e-media-holder"},v(e),w(e)),wp.element.createElement("div",{className:"qodef-e-content"},("no"!==t.showCategory||"no"!==t.showAuthor)&&wp.element.createElement("div",{className:"qodef-e-info qodef-info--top"},h(e),k(e)),wp.element.createElement("div",{className:"qodef-e-text"},g(e),f(e)),"no"!==t.showButton&&d(e))),"info-on-image"===t.itemLayout&&wp.element.createElement("div",{className:"qodef-e-inner"},"no"!==t.showMedia&&""!==e.featuredImage&&wp.element.createElement(wp.element.Fragment,null,v(e),w(e)),wp.element.createElement("div",{className:"qodef-e-content"},("no"!==t.showCategory||"no"!==t.showAuthor)&&wp.element.createElement("div",{className:"qodef-e-info qodef-info--top"},h(e),k(e)),wp.element.createElement("div",{className:"qodef-e-text"},g(e)))),"minimal"===t.itemLayout&&wp.element.createElement("div",{className:"qodef-e-inner",style:ie(Ge,n)},wp.element.createElement("div",{className:"qodef-e-content"},("no"!==t.showDate||"no"!==t.showCategory||"no"!==t.showAuthor)&&wp.element.createElement("div",{className:"qodef-e-info qodef-info--top"},q(e),h(e),k(e)),wp.element.createElement("div",{className:"qodef-e-text"},g(e),f(e)),"yes"===t.showButton&&d(e))),"side-image"===t.itemLayout&&wp.element.createElement("div",{className:"qodef-e-inner",style:ie(We,n)},v(e),wp.element.createElement("div",{className:"qodef-e-content"},("no"!==t.showDate||"no"!==t.showCategory||"no"!==t.showAuthor)&&wp.element.createElement("div",{className:"qodef-e-info qodef-info--top"},q(e),h(e),k(e)),wp.element.createElement("div",{className:"qodef-e-text"},g(e),"yes"===t.showExcerpt&&f(e)),"no"!==t.showButton&&d(e))),"standard"===t.itemLayout&&wp.element.createElement("div",{className:"qodef-e-inner"},v(e),wp.element.createElement("div",{className:"qodef-e-content"},("no"!==t.showDate||"no"!==t.showCategory)&&wp.element.createElement("div",{className:"qodef-e-info qodef-info--top"},q(e),h(e)),wp.element.createElement("div",{className:"qodef-e-text"},g(e),f(e)),"no"!==t.showAuthor&&wp.element.createElement("div",{className:"qodef-e-info qodef-info--bottom"},wp.element.createElement("div",{className:"qodef-info--left"},y(e))),"no"!==t.showButton&&d(e))))}):wp.element.createElement("p",{className:"qodef-m-posts-not-found qodef-gutenberg-column"},(0,e.__)("No posts were found for provided query parameters.","qi-blocks")),d=o=>wp.element.createElement("div",{className:"qodef-e-info qodef-info--bottom"},!o.isPasswordRequired&&wp.element.createElement("div",{className:"qodef-e-read-more"},wp.element.createElement("a",{href:o.permalink,className:B,style:"textual"!==t.buttonLayout?ie(mt,n):{},target:"_self"},wp.element.createElement("span",{className:"qodef-m-text",style:ie(ht,n)},t.buttonText||(0,e.__)("Read More","qi-blocks")),"icon-boxed"===t.buttonType&&"yes"===t.buttonIconEnableSideBorder&&l&&l.html&&"textual"!==t.buttonLayout&&wp.element.createElement("span",{className:"qodef-m-border",style:ie(At,n)}),l&&l.html&&wp.element.createElement("span",{className:"qodef-m-icon"+(me(t.buttonIconColor)?" qodef--icon-color-set":""),style:ie(_t,n)},wp.element.createElement("span",{className:"qodef-m-icon-inner",dangerouslySetInnerHTML:{__html:`${l.html+(""!==t.buttonIconHoverMove&&"move-horizontal-short"!==t.buttonIconHoverMove?l.html:"")}`}})),"inner-border"===t.buttonType&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("span",{className:"qodef-m-inner-border",style:ie(Dt,n)},"move-outer-edge"!==t.buttonInnerBorderHoverType&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("span",{className:"qodef-m-border-top",style:ie(Tt,n)}),wp.element.createElement("span",{className:"qodef-m-border-right",style:ie(Pt,n)}),wp.element.createElement("span",{className:"qodef-m-border-bottom",style:ie(Tt,n)}),wp.element.createElement("span",{className:"qodef-m-border-left",style:ie(Pt,n)}))),["draw q-draw-center","draw q-draw-one-point","draw q-draw-two-points"].includes(t.buttonInnerBorderHoverType)&&wp.element.createElement("div",{className:"qodef-m-inner-border qodef-m-inner-border-copy",style:ie(Rt,n)},wp.element.createElement("span",{className:"qodef-m-border-top",style:ie(Tt,n)}),wp.element.createElement("span",{className:"qodef-m-border-right",style:ie(Pt,n)}),wp.element.createElement("span",{className:"qodef-m-border-bottom",style:ie(Tt,n)}),wp.element.createElement("span",{className:"qodef-m-border-left",style:ie(Pt,n)})))))),f=e=>e.isPasswordRequired?wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:e.passwordForm}}):"no"!==t.showExcerpt&&e.excerpt&&wp.element.createElement("p",{className:"qodef-e-excerpt",style:ie(ye,n),dangerouslySetInnerHTML:{__html:e.excerpt}}),g=e=>{const o=t.titleTag;return wp.element.createElement(o,{className:"qodef-e-title",style:ie(le,n)},wp.element.createElement("a",{href:e.permalink,className:"qodef-e-title-link"},e.title))},h=e=>{const o="yes"===t.showInfoIcons?qiBlocksEditor.vars.categoryIcon+e.postCategories:e.postCategories;return"no"!==t.showCategory&&wp.element.createElement("div",{className:"qodef-e-info-item qodef-e-info-category",dangerouslySetInnerHTML:{__html:o}})},k=e=>{const o="yes"===t.showInfoIcons?qiBlocksEditor.vars.authorIcon+e.authorName:e.authorName;return"no"!==t.showAuthor&&e.authorName&&wp.element.createElement("div",{className:"qodef-e-info-item qodef-e-info-author"},wp.element.createElement("a",{className:"qodef-e-info-author-link",href:e.authorURL,dangerouslySetInnerHTML:{__html:o}}))},y=e=>e.authorName&&wp.element.createElement("div",{className:"qodef-e-info-item qodef-e-info-author"},wp.element.createElement("a",{className:"qodef-e-info-author-link",href:e.authorURL,dangerouslySetInnerHTML:{__html:e.authorAvatar+e.authorName}})),v=e=>"no"!==t.showMedia&&""!==e.featuredImage&&wp.element.createElement("div",{className:"qodef-e-media"},_(e)),_=e=>""!==e.featuredImage&&wp.element.createElement("div",{className:"qodef-e-media-image",style:ie(Ae,n)},wp.element.createElement("a",{href:e.permalink,dangerouslySetInnerHTML:{__html:e.featuredImage}})),w=e=>"no"!==t.showDate&&wp.element.createElement("div",{className:"qodef-e-info-item qodef-e-info-date"},wp.element.createElement("a",{href:e.dateLink},e.dateBoxed)),q=e=>{const o="yes"===t.showInfoIcons?qiBlocksEditor.vars.dateIcon+e.date:e.date;return"no"!==t.showDate&&wp.element.createElement("div",{className:"qodef-e-info-item qodef-e-info-date"},wp.element.createElement("a",{href:e.dateLink,dangerouslySetInnerHTML:{__html:o}}))},S=((e,t="",o=[])=>ne(e,t,o))(t),A=Ce({blockAttributes:t}),I=JSON.stringify(te(t)),C=((e,t="")=>{let o=["qodef-block-container"];return me(e.uniqueClass,"all")&&o.push(e.uniqueClass),o.push(ee(e,t)),o.join(" ")})(t);o({blockContainerIds:S}),o({blockContainerData:I}),o({blockContainerClasses:C});let E={className:C,style:ie(A,n),...te(t)};S&&(E.id=S);const T="columns"===t.behavior?Oo({blockAttributes:t,allowColumnsGap:!1}):"",P="masonry"===t.behavior?Bo({blockAttributes:t,isFixedMasonry:!1}):"",O=m()(oe("blog-list",this.props),T,{[`qodef-item-layout--${t.itemLayout}`]:t.itemLayout,"qodef--list":"standard"===t.itemLayout,"qodef-alignment--centered":"yes"===t.centerContent,"qodef-info-no-icons":"yes"!==t.showInfoIcons,"qodef-title--hover-underline":"yes"===t.titleHoverUnderline,"qodef-reverse-columns":t.reverseColumns&&"side-image"===t.itemLayout,[`qodef-image--hover-${t.imageHover}`]:t.imageHover&&"minimal"!==t.itemLayout,[`qodef-image--hover-from-${t.imageZoomOrigin}`]:t.imageZoomOrigin&&"minimal"!==t.itemLayout}),B=m()(oe("button",this.props),`qodef-layout--${t.buttonLayout}`,`qodef-type--${t.buttonType}`,{[`qodef-inner-border-hover--${t.buttonInnerBorderHoverType}`]:t.buttonInnerBorderHoverType,[`qodef-size--${t.buttonSize}`]:t.buttonSize,"qodef-text-underline":"yes"===t.buttonUnderline,[`qodef-underline--${t.buttonUnderlineAlignment}`]:"yes"===t.buttonUnderline&&t.buttonUnderlineAlignment,"qodef-button-underline-draw":"yes"===t.buttonUnderline&&"yes"===t.buttonUnderlineDraw,[`qodef-icon--${t.buttonIconPosition}`]:t.buttonIconPosition&&l&&l.html,[`qodef-hover--reveal qodef--${t.buttonRevealHover}`]:t.buttonRevealHover,[`qodef-icon-background-hover--reveal qodef-icon-background-hover--${t.buttonIconBackgroundHoverReveal}`]:t.buttonIconBackgroundHoverReveal,[`qodef-hover--icon-${t.buttonIconHoverMove}`]:t.buttonIconHoverMove}),D=(e=>{const{attributes:t,attrNameTemplate:o,previewScreen:n}=e,r=(e,t)=>re(o,e,t);let l=t.uniqueClass,a={},i={},s={},c={pageStyle:[],editorStyle:""};Object.entries(x).map(([e])=>{let o=ae(e),n={};""===t[r("SpaceBetweenItems",o)]&&""===t[r("SpaceBetweenItemsDecimal",o)]||(ce(t[r("SpaceBetweenItemsUnit",o)])&&""!==be(t[r("SpaceBetweenItems",o)])?n["--qi-blocks-columns-gap"]=parseInt(t[r("SpaceBetweenItems",o)],10)+t[r("SpaceBetweenItemsUnit",o)]:ue(t[r("SpaceBetweenItemsUnit",o)])&&""!==be(t[r("SpaceBetweenItemsDecimal",o)])&&(n["--qi-blocks-columns-gap"]=parseFloat(t[r("SpaceBetweenItemsDecimal",o)])+t[r("SpaceBetweenItemsUnit",o)])),Object.keys(n).length>0&&Object.entries(n).map(([t,o])=>{switch(e){case"desktop":a[t]=o;break;case"tablet":i[t]=o;break;case"mobile":s[t]=o}})});const u={desktop:a,tablet:i,mobile:s};return c.pageStyle.push({selector:`.${l} .qodef-gutenberg-section`,styles:u}),c.editorStyle+=se(ie(u,n))&&`.${l} .qodef-gutenberg-section.qodef--columns, \n\t\t.${l} .qodef-gutenberg-section.qodef-gutenberg-masonry-layout {\n\t\t\t${se(ie(u,n),!1)}\n\t\t}`,c})({attributes:t,previewScreen:n}),R="yes"===t.enableZigzag?fe({attributes:t,blockAttrName:"zigzagAmount",cssProp:"marginTop"}):{},M=fe({attributes:t,blockAttrName:"paginationMarginTop",cssProp:"marginTop"}),L=fe({attributes:t,blockAttrName:"paginationArrowsSize",cssProp:"fontSize"}),j=No({attrNameTemplate:"Pagination",attributes:t}),V=ge("color",t.paginationColor),$=ge("backgroundColor",t.paginationBackgroundColor),U=ke({attrNameTemplate:"Pagination",attrName:"BorderRadius",blockAttributes:t}),H=fe({attributes:t,blockAttrName:"paginationWidth",cssProp:"width"}),F=fe({attributes:t,blockAttrName:"paginationHeight",cssProp:"height"}),z=fe({attributes:t,blockAttrName:"paginationSpacing",cssProp:"margin"},"0 calc(%s/2)"),K=a()(j,V,$,U,H,F,z),G=ge("color",t.paginationHoverColor),W=ge("backgroundColor",t.paginationHoverBackgroundColor),Y=a()(G,W),X=ge("color",t.titleColor),Z=ge("color",t.titleHoverColor),Q=No({attrNameTemplate:"Title",attributes:t}),J=fe({attributes:t,blockAttrName:"titleMarginBottom",cssProp:"marginBottom"}),le=a()(Q,J),pe=ge("color",t.excerptColor),he=No({attrNameTemplate:"Excerpt",attributes:t}),ye=a()(pe,he),ve=ge("color",t.infoColor),_e=No({attrNameTemplate:"Info",attributes:t}),we=ge("color",t.infoHoverColor),qe=ge("color",t.infoIconsColor),Se=a()(ve,_e),Ae=ke({attrNameTemplate:"Image",attrName:"BorderRadius",blockAttributes:t}),Ie=ge("backgroundColor",t.overlayColor),Ee=ge("backgroundColor",t.overlayHoverColor),Te=ge("color",t.standardBottomInfoHoverColor),Pe=ge("color",t.standardBottomInfoColor),Oe=No({attrNameTemplate:"StandardBottomInfo",attributes:t}),Be=a()(Pe,Oe),De=fe({attributes:t,blockAttrName:"postInfoMarginBottom",cssProp:"marginBottom"}),Re=["boxed","date-boxed","standard"].includes(t.itemLayout)?fe({attributes:t,blockAttrName:"textMarginBottom",cssProp:"marginBottom"}):{},Me=["date-boxed","standard"].includes(t.itemLayout)?fe({attributes:t,blockAttrName:"imageMarginBottom",cssProp:"marginBottom"}):{},Le=fe({attributes:t,blockAttrName:"minimalItemPaddingTop",cssProp:"paddingTop"}),je=fe({attributes:t,blockAttrName:"minimalItemPaddingTop",cssProp:"marginTop"},"-%s !important"),Ve=fe({attributes:t,blockAttrName:"sideImageWidth",cssProp:"width"}),$e=["boxed","date-boxed","info-on-image","side-image"].includes(t.itemLayout)?ke({attrNameTemplate:"Content",attrName:"Padding",blockAttributes:t}):{},Ue=ge("backgroundColor",t.boxedContentBackgroundColor),He=xe({attrNameTemplate:"BoxedItem",blockAttributes:t}),Fe=ge("borderColor",t.minimalBorderTopColor),ze=fe({attributes:t,blockAttrName:"minimalBorderTopThickness",cssProp:"borderTopWidth"}),Ke=ge("borderTopStyle",t.minimalBorderTopStyle),Ge=a()(Fe,ze,Ke),We=ge("alignItems",t.sideImageVerticalAlignment),Ye=["boxed","date-boxed","info-on-image"].includes(t.itemLayout)?ge("color",t.dateHoverColor):{},Xe=ge("color",t.dateColor),Ze=ge("backgroundColor",t.dateBackgroundColor),Qe=No({attrNameTemplate:"Date",attributes:t}),Je=ke({attrNameTemplate:"Date",attrName:"Padding",blockAttributes:t}),et=fe({attributes:t,blockAttrName:"dateBorderRadius",cssProp:"borderRadius"}),tt=fe({attributes:t,blockAttrName:"dateVerticalOffset",cssProp:"top"}),ot=fe({attributes:t,blockAttrName:"dateHorizontalOffset",cssProp:"right"}),nt=["boxed","date-boxed","info-on-image"].includes(t.itemLayout)?a()(Xe,Ze,Qe,Je,et,tt,ot):{},rt=jo({attrNameTemplate:"Button",blockAttributes:t}),lt=ge("color",t.buttonColor),at=ge("color",t.buttonColor),it=ge("borderColor",t.buttonBorderColor),st=a()(at,it),ct=ke({attrNameTemplate:"Button",attrName:"Padding",blockAttributes:t}),ut=ke({attrNameTemplate:"Button",attrName:"BorderWidth",blockAttributes:t}),pt=ke({attrNameTemplate:"Button",attrName:"BorderRadius",blockAttributes:t}),mt=a()(ct,ut,pt),bt=ke({attrNameTemplate:"Button",attrName:"Padding",blockAttributes:t,disableDirections:["Left","Right"]}),dt=Vo({attrNameTemplate:"Button",blockAttributes:t}),ft=fe({attributes:t,blockAttrName:"buttonHoverBackgroundColor",cssProp:"backgroundColor"}),gt=ge("color",t.buttonHoverColor),ht=No({attrNameTemplate:"ButtonText",attributes:t}),kt=Lo({blockAttributes:t,attrNameTemplate:"Button"}),yt=ke({attrNameTemplate:"Icon",attrName:"Margin",blockAttributes:t}),vt=fe({attributes:t,blockAttrName:"buttonIconStrokeWidth",cssProp:"strokeWidth"}),_t=a()(kt,yt,vt),wt=fe({attributes:t,blockAttrName:"buttonIconSideBorderWidth",cssProp:"width"}),qt=fe({attributes:t,blockAttrName:"buttonIconSideBorderHeight",cssProp:"height"},"",{cssProp:"alignSelf",value:"center"}),St=jo({attrNameTemplate:"ButtonIconSideBorder",blockAttributes:t}),At=a()(wt,qt,St),xt=Vo({attrNameTemplate:"ButtonIconSideBorder",blockAttributes:t}),It=Vo({attrNameTemplate:"ButtonIcon",blockAttributes:t}),Ct=jo({attrNameTemplate:"ButtonIcon",blockAttributes:t}),Et=fe({attributes:t,blockAttrName:"buttonInnerBorderWidth",cssProp:"borderWidth"}),Tt=fe({attributes:t,blockAttrName:"buttonInnerBorderWidth",cssProp:"height"}),Pt=fe({attributes:t,blockAttrName:"buttonInnerBorderWidth",cssProp:"width"}),Ot=fe({attributes:t,blockAttrName:"buttonInnerBorderOffset",cssProp:"fontSize"}),Bt=jo({attrNameTemplate:"ButtonInnerBorder",blockAttributes:t}),Nt=Vo({attrNameTemplate:"ButtonInnerBorder",blockAttributes:t}),Dt="move-outer-edge"===t.buttonInnerBorderHoverType?a()(Et,Bt,Ot):a()(Bt,Ot),Rt=a()(Nt,Ot),Mt=jo({attrNameTemplate:"ButtonUnderline",blockAttributes:t}),Lt=fe({attributes:t,blockAttrName:"buttonUnderlineWidth",cssProp:"width"}),jt=fe({attributes:t,blockAttrName:"buttonUnderlineOffset",cssProp:"bottom"}),Vt=fe({attributes:t,blockAttrName:"buttonUnderlineThickness",cssProp:"height"}),$t=a()(Mt,Lt,jt,Vt),Ut=jo({attrNameTemplate:"ButtonUnderlineHover",blockAttributes:t}),Ht=fe({attributes:t,blockAttrName:"buttonUnderlineHoverWidth",cssProp:"width"}),Ft=a()(Ut,Ht);return this.props.addPageStyle([{selector:`.${r}.qodef-block-container`,styles:A},{selector:`.${r} .qi-block-blog-list .qodef-gutenberg-row >.qodef-e:nth-of-type(even) > *`,styles:R},{selector:`.${r} .qi-block-blog-list .qodef-e-info.qodef-info--top .qodef-e-info-item-icon`,styles:qe},{selector:`.${r} .qi-block-blog-list .qodef-e-info.qodef-info--top .qodef-e-info-item`,styles:Se},{selector:`.${r} .qi-block-blog-list .qodef-e-info.qodef-info--top .qodef-e-info-item a:hover`,styles:we},{selector:`.${r} .qi-block-blog-list .qodef-e-media-image`,styles:Ae},{selector:`.${r} .qi-block-blog-list .qodef-e-media-image a:after`,styles:Ie},{selector:`.${r} .qi-block-blog-list .qodef-e:hover .qodef-e-media-image a:after`,styles:Ee},{selector:`.${r} .qi-block-blog-list .qodef-e-title`,styles:le},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--minimal .qodef-e-inner`,styles:Ge},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--side-image .qodef-e-inner`,styles:We},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--boxed .qodef-e-content`,styles:Ue},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--boxed .qodef-e-inner`,styles:He},{selector:[`.${r} .qi-block-blog-list .qodef-e-title`,`.${r} .qi-block-blog-list .qodef-e-title a`],styles:X},{selector:[`.${r} .qi-block-blog-list .qodef-e-title:hover`,`.${r} .qi-block-blog-list .qodef-e-title:hover a`],styles:Z},{selector:`.${r} .qi-block-blog-list .qodef-e-excerpt`,styles:ye},{selector:`.${r} .qi-block-blog-list .qodef-e-info.qodef-info--top`,styles:De},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--standard .qodef-e-info.qodef-info--bottom .qodef-e-info-item`,styles:Be},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--standard .qodef-e-info.qodef-info--bottom .qodef-e-info-item a:hover`,styles:Te},{selector:`.${r} .qi-block-blog-list .qodef-m-pagination`,styles:M},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--${t.itemLayout} .qodef-e-text`,styles:Re},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--${t.itemLayout} .qodef-e-info-date a:hover`,styles:Ye},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--${t.itemLayout} .qodef-e-info-date`,styles:nt},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--${t.itemLayout} .qodef-e-media`,styles:Me},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--${t.itemLayout} .qodef-e-content`,styles:$e},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--minimal .qodef-gutenberg-row`,styles:je},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--minimal .qodef-e-inner`,styles:Le},{selector:`.${r} .qi-block-blog-list.qodef-item-layout--side-image .qodef-e-media`,styles:Ve},{selector:`.${r} .qi-block-blog-list .qodef-m-pagination.qodef--standard .page-numbers`,styles:K},{selector:[`.${r} .qi-block-blog-list .qodef-m-pagination.qodef--standard .page-numbers.current`,`.${r} .qi-block-blog-list .qodef-m-pagination.qodef--standard .page-numbers:hover`],styles:Y},{selector:[`.${r} .qi-block-blog-list .qodef-m-pagination.qodef--standard .page-numbers.next`,`.${r} .qi-block-blog-list .qodef-m-pagination.qodef--standard .page-numbers.prev`],styles:L},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-block .qodef-m-icon`,styles:_t},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-type--icon-boxed .qodef-m-icon`,styles:Ct},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-type--icon-boxed.qodef-icon-background-hover--reveal .qodef-m-icon:after`,styles:It},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-type--icon-boxed:not(.qodef-icon-background-hover--reveal):hover .qodef-m-icon`,styles:It},{selector:`.${r} .qi-block-blog-list .qi-block-button .qodef-m-border`,styles:At},{selector:`.${r} .qi-block-blog-list .qi-block-button .qodef-m-text`,styles:ht},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-type--icon-boxed .qodef-m-text`,styles:ct},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-type--icon-boxed .qodef-m-icon`,styles:bt},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-block.qodef-text-underline .qodef-m-text:after`,styles:$t},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-block.qodef-text-underline:hover .qodef-m-text:after`,styles:Ft},{selector:`.${r} .qi-block-blog-list .qi-block-button:hover .qodef-m-border`,styles:xt},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--filled`,styles:rt},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--outlined`,styles:st},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--textual`,styles:lt},{selector:`.${r} .qi-block-blog-list .qi-block-button:not(.qodef-layout--textual):hover`,styles:dt},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--textual:hover`,styles:gt},{selector:`.${r} .qi-block-blog-list .qi-block-button:not(.qodef-layout--textual)`,styles:mt},{selector:`.${r} .qi-block-blog-list .qi-block-button .qodef-m-inner-border`,styles:Dt},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-type--inner-border:not(.qodef-inner-border-hover--draw):hover  .qodef-m-inner-border:not(.qodef-m-inner-border-copy)`,styles:Nt},{selector:`.${r} .qi-block-blog-list .qi-block-button .qodef-m-inner-border > span:nth-child(odd)`,styles:Tt},{selector:`.${r} .qi-block-blog-list .qi-block-button .qodef-m-inner-border > span:nth-child(even)`,styles:Pt},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--filled:not(.qodef-hover--reveal):hover`,styles:ft},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--outlined:not(.qodef-hover--reveal):hover`,styles:ft},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--filled.qodef-hover--reveal:after`,styles:ft},{selector:`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--outlined.qodef-hover--reveal:after`,styles:ft},{selector:[`.${r} .qi-block-blog-list .qi-block-button.qodef-type--inner-border:not(.qodef-inner-border-hover--draw):hover .qodef-m-inner-border:not(.qodef-m-inner-border-copy)`,`.${r} .qi-block-blog-list .qi-block-button.qodef-type--inner-border .qodef-m-inner-border.qodef-m-inner-border-copy`],styles:Nt},...D.pageStyle]),wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(i.InspectorControls,null,wp.element.createElement(u.TabPanel,{className:"qodef-tab-panel qodef--blog-list",activeClass:"qodef--active",tabs:[{name:"content",title:(0,e.__)("Content","qi-blocks")},{name:"style",title:(0,e.__)("Style","qi-blocks")},{name:"advanced",title:(0,e.__)("Advanced","qi-blocks")}]},n=>wp.element.createElement(wp.element.Fragment,null,"content"===n.name&&wp.element.createElement(u.BaseControl,{className:"qodef-base-control-container"},wp.element.createElement(u.PanelBody,{title:(0,e.__)("General","qi-blocks"),initialOpen:!1},wp.element.createElement(u.SelectControl,{label:(0,e.__)("List Appearance","qi-blocks"),value:t.behavior,onChange:e=>o({behavior:e}),options:[{value:"columns",label:(0,e.__)("Gallery","qi-blocks")},{value:"masonry",label:(0,e.__)("Masonry","qi-blocks")}]}),"columns"===t.behavior&&"minimal"!==t.itemLayout&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(u.SelectControl,{label:(0,e.__)("Image Proportions","qi-blocks"),value:t.imagesProportion,options:[...de("image_sizes",!1),...de("masonry_image_sizes",!1),{value:"custom",label:(0,e.__)("Custom","qi-blocks")}],onChange:e=>o({imagesProportion:e})}),"custom"===t.imagesProportion&&wp.element.createElement("div",{className:"qodef-image-option-custom-size"},wp.element.createElement("label",{className:"qodef-option-label"},(0,e.__)("Custom Image Size","qi-blocks")),wp.element.createElement(u.TextControl,{type:"number",label:(0,e.__)("Width","qi-blocks"),value:t.customImageWidth,onChange:e=>o({customImageWidth:e}),min:1,max:2560,step:1}),wp.element.createElement(u.TextControl,{type:"number",label:(0,e.__)("Height","qi-blocks"),value:t.customImageHeight,onChange:e=>o({customImageHeight:e}),min:1,max:2560,step:1}),wp.element.createElement(u.Button,{isPrimary:!0,text:(0,e.__)("Apply Changes","qi-blocks"),onClick:this.fetchApiData}))),wp.element.createElement(mo,{blockAttributes:t,setAttributes:o,allowColumnsGap:!1,allowColumnsGapSlider:!0}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Enable Pagination","qi-blocks"),value:t.enablePagination,options:de("no_yes",!1),onChange:e=>o({enablePagination:e})}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Enable Zigzag","qi-blocks"),value:t.enableZigzag,options:de("no_yes",!1),onChange:e=>o({enableZigzag:e})}),"yes"===t.enableZigzag&&wp.element.createElement(eo,{label:(0,e.__)("Zigzag Amount","qi-blocks"),blockAttributeKey:"zigzagAmount",setAttributes:o,blockAttributes:t,allowScreens:!0,unitType:"pxAndPercent",rangeDecimalMax:100,rangeDecimalStep:1})),wp.element.createElement(u.PanelBody,{title:(0,e.__)("Query","qi-blocks"),initialOpen:!1},wp.element.createElement(N,{label:(0,e.__)("Inherit query from template","qi-blocks"),help:(0,e.__)("Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently.","qi-blocks"),blockAttributeKey:"inheritGlobalQuery",blockAttributes:t,setAttributes:o}),!s&&wp.element.createElement(fo,{blockAttributes:t,setAttributes:o}),wp.element.createElement(u.Button,{isPrimary:!0,text:(0,e.__)("Apply Query Changes","qi-blocks"),onClick:this.fetchApiData})),wp.element.createElement(u.PanelBody,{title:(0,e.__)("Layout","qi-blocks"),initialOpen:!1},wp.element.createElement(u.SelectControl,{label:(0,e.__)("Item Layout","qi-blocks"),value:t.itemLayout,options:[{value:"boxed",label:(0,e.__)("Boxed","qi-blocks")},{value:"date-boxed",label:(0,e.__)("Date Boxed","qi-blocks")},{value:"info-on-image",label:(0,e.__)("Info on Image","qi-blocks")},{value:"minimal",label:(0,e.__)("Minimal","qi-blocks")},{value:"side-image",label:(0,e.__)("Side Image","qi-blocks")},{value:"standard",label:(0,e.__)("Standard","qi-blocks")}],onChange:e=>o({itemLayout:e})}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Title Tag","qi-blocks"),value:t.titleTag,options:de("title_tag"),onChange:e=>o({titleTag:e})}),"info-on-image"!==t.itemLayout&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(u.SelectControl,{label:(0,e.__)("Show Excerpt","qi-blocks"),value:t.showExcerpt,options:de("yes_no"),onChange:e=>o({showExcerpt:e})}),"no"!==t.showExcerpt&&wp.element.createElement(u.TextControl,{label:(0,e.__)("Excerpt Length","qi-blocks"),value:t.excerptLength,onChange:e=>o({excerptLength:e})})),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Center Content","qi-blocks"),value:t.centerContent,options:de("yes_no"),onChange:e=>o({centerContent:e})}),!["minimal","info-on-image"].includes(t.itemLayout)&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Show Media","qi-blocks"),value:t.showMedia,options:de("yes_no"),onChange:e=>o({showMedia:e})}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Show Info Icons","qi-blocks"),value:t.showInfoIcons,options:de("yes_no"),onChange:e=>o({showInfoIcons:e})}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Show Date","qi-blocks"),value:t.showDate,options:de("yes_no"),onChange:e=>o({showDate:e})}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Show Category","qi-blocks"),value:t.showCategory,options:de("yes_no"),onChange:e=>o({showCategory:e})}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Show Author","qi-blocks"),value:t.showAuthor,options:de("yes_no"),onChange:e=>o({showAuthor:e})}),!["info-on-image"].includes(t.itemLayout)&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Show Button","qi-blocks"),value:t.showButton,options:de("yes_no"),onChange:e=>o({showButton:e})})),("minimal"===t.itemLayout&&"yes"===t.showButton||["standard","boxed","date-boxed","side-image"].includes(t.itemLayout)&&"no"!==t.showButton)&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(u.PanelBody,{title:(0,e.__)("Read More Button","qi-blocks"),initialOpen:!1},wp.element.createElement(u.TextControl,{label:(0,e.__)("Read More Text","qi-blocks"),help:(0,e.__)("If nothing is entered, 'Read More' text will be used","qi-blocks"),value:t.buttonText,onChange:e=>o({buttonText:e})}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Layout","qi-blocks"),value:t.buttonLayout,options:[{value:"filled",label:(0,e.__)("Filled","qi-blocks")},{value:"outlined",label:(0,e.__)("Outlined","qi-blocks")},{value:"textual",label:(0,e.__)("Textual","qi-blocks")}],onChange:e=>o({buttonLayout:e})}),"textual"!==t.buttonLayout&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Type","qi-blocks"),value:t.buttonType,options:[{value:"standard",label:(0,e.__)("Standard","qi-blocks")},{value:"inner-border",label:(0,e.__)("With Inner Border","qi-blocks")},{value:"icon-boxed",label:(0,e.__)("Icon Boxed","qi-blocks")}],onChange:e=>o({buttonType:e})}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Enable Button Text Underline","qi-blocks"),value:t.buttonUnderline,options:de("no_yes",!1),onChange:e=>o({buttonUnderline:e})}),"textual"!==t.buttonLayout&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Size","qi-blocks"),value:t.buttonSize,options:[{value:"",label:(0,e.__)("Normal","qi-blocks")},{value:"small",label:(0,e.__)("Small","qi-blocks")},{value:"large",label:(0,e.__)("Large","qi-blocks")},{value:"full",label:(0,e.__)("Normal Full Width","qi-blocks")}],onChange:e=>o({buttonSize:e})})),wp.element.createElement(u.PanelBody,{title:(0,e.__)("Read More Button Icon","qi-blocks"),initialOpen:!1},wp.element.createElement(Po,{setAttributes:o,blockAttributes:t,attrNameTemplate:"Button"}),l&&l.html&&wp.element.createElement(wp.element.Fragment,null,"icon-boxed"===t.buttonType&&"textual"!==t.buttonLayout&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ro,{label:(0,e.__)("Icon Background Color","qi-blocks"),blockAttributes:t,setAttributes:o,attrNameTemplate:"ButtonIconBackground"}),wp.element.createElement(Ro,{label:(0,e.__)("Icon Background Hover Color","qi-blocks"),blockAttributes:t,setAttributes:o,attrNameTemplate:"ButtonIconBackgroundHover"}),""!==t.buttonIconBackgroundHoverColor&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Reveal Background","qi-blocks"),value:t.buttonIconBackgroundHoverReveal,options:[{value:"",label:(0,e.__)("None","qi-blocks")},{value:"reveal-horizontal",label:(0,e.__)("Horizontal","qi-blocks")},{value:"reveal-vertical",label:(0,e.__)("Vertical","qi-blocks")}],onChange:e=>o({buttonIconBackgroundHoverReveal:e})})),wp.element.createElement(eo,{label:(0,e.__)("Icon Stroke Width","qi-blocks"),blockAttributeKey:"buttonIconStrokeWidth",setAttributes:o,blockAttributes:t,rangeMax:20,allowUnits:!1}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Icon Hover Move","qi-blocks"),value:t.buttonIconHoverMove,options:[{value:"move-horizontal-short",label:(0,e.__)("Horizontal Short","qi-blocks")},{value:"move-horizontal",label:(0,e.__)("Horizontal","qi-blocks")},{value:"move-vertical",label:(0,e.__)("Vertical","qi-blocks")},{value:"move-diagonal",label:(0,e.__)("Diagonal","qi-blocks")},{value:"",label:(0,e.__)("None","qi-blocks")}],onChange:e=>o({buttonIconHoverMove:e})}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Icon Position","qi-blocks"),value:t.buttonIconPosition,options:[{value:"right",label:(0,e.__)("Right","qi-blocks")},{value:"left",label:(0,e.__)("Left","qi-blocks")}],onChange:e=>o({buttonIconPosition:e})}),"icon-boxed"===t.buttonType&&"textual"!==t.buttonLayout&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Enable Icon Side border","qi-blocks"),value:t.buttonIconEnableSideBorder,options:de("no_yes",!1),onChange:e=>o({buttonIconEnableSideBorder:e})}),wp.element.createElement(Ne,{label:(0,e.__)("Icon Margin","qi-blocks"),setAttributes:o,blockAttributes:t,attrNameTemplate:"Icon",attrName:"Margin"}),"yes"===t.buttonIconEnableSideBorder&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ro,{label:(0,e.__)("Icon Side Border Color","qi-blocks"),blockAttributes:t,setAttributes:o,attrNameTemplate:"ButtonIconSideBorder"}),wp.element.createElement(Ro,{label:(0,e.__)("Icon Side Border Hover Color","qi-blocks"),blockAttributes:t,setAttributes:o,attrNameTemplate:"ButtonIconSideBorderHover"}),wp.element.createElement(eo,{label:(0,e.__)("Icon Side Border Height","qi-blocks"),blockAttributeKey:"buttonIconSideBorderHeight",setAttributes:o,blockAttributes:t,rangeMax:100,allowScreens:!0,allowUnits:!1}),wp.element.createElement(eo,{label:(0,e.__)("Icon Side Border Width","qi-blocks"),blockAttributeKey:"buttonIconSideBorderWidth",setAttributes:o,blockAttributes:t,rangeMax:10,allowScreens:!0,allowUnits:!1})))))),"style"===n.name&&wp.element.createElement(u.BaseControl,{className:"qodef-base-control-container"},"yes"===t.enablePagination&&wp.element.createElement(u.PanelBody,{title:(0,e.__)("Pagination Style","qi-blocks"),initialOpen:!1},wp.element.createElement(Eo,{label:(0,e.__)("Pagination Typography","qi-blocks"),attrNameTemplate:"Pagination",blockAttributes:t,setAttributes:o,popup:!0}),wp.element.createElement(u.TabPanel,{className:"qodef-tab-panel qodef--inner",activeClass:"qodef--active",tabs:[{name:"normal",title:(0,e.__)("Normal","qi-blocks")},{name:"hover",title:(0,e.__)("Hover","qi-blocks")}]},n=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Kt,{label:(0,e.__)("Color","qi-blocks"),blockAttributeKey:`pagination${"hover"===n.name?"Hover":""}Color`,blockAttributes:t,setAttributes:o}),wp.element.createElement(Kt,{label:(0,e.__)("Background Color","qi-blocks"),blockAttributeKey:`pagination${"hover"===n.name?"Hover":""}BackgroundColor`,blockAttributes:t,setAttributes:o}))),wp.element.createElement(Po,{label:(0,e.__)("Pagination Arrow Previous","qi-blocks"),attrNameTemplate:"PaginationArrowPrev",blockAttributes:t,setAttributes:o,allowSize:!1,allowColor:!1}),wp.element.createElement(Po,{label:(0,e.__)("Pagination Arrow Next","qi-blocks"),attrNameTemplate:"PaginationArrowNext",blockAttributes:t,setAttributes:o,allowSize:!1,allowColor:!1}),wp.element.createElement(eo,{label:(0,e.__)("Pagination Arrows Size","qi-blocks"),blockAttributeKey:"paginationArrowsSize",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.paginationArrowsSizeUnit?10:100}),wp.element.createElement(Ne,{label:(0,e.__)("Pagination Item Border Radius","qi-blocks"),attrNameTemplate:"Pagination",attrName:"BorderRadius",blockAttributes:t,setAttributes:o}),wp.element.createElement(eo,{label:(0,e.__)("Pagination Item Width","qi-blocks"),blockAttributeKey:"paginationWidth",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.paginationWidthUnit?10:100}),wp.element.createElement(eo,{label:(0,e.__)("Pagination Item Height","qi-blocks"),blockAttributeKey:"paginationHeight",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.paginationHeightUnit?10:100}),wp.element.createElement(eo,{label:(0,e.__)("Space Between Pagination Items","qi-blocks"),blockAttributeKey:"paginationSpacing",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.paginationSpacingUnit?10:100}),wp.element.createElement(eo,{label:(0,e.__)("Pagination Margin Top","qi-blocks"),blockAttributeKey:"paginationMarginTop",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeMin:-150,rangeDecimalMin:"em"===t.paginationMarginTopUnit?-30:-100,rangeDecimalMax:"em"===t.paginationMarginTopUnit?30:300})),wp.element.createElement(u.PanelBody,{title:(0,e.__)("Style","qi-blocks"),initialOpen:!1},wp.element.createElement(Kt,{label:(0,e.__)("Title Color","qi-blocks"),blockAttributeKey:"titleColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(Kt,{label:(0,e.__)("Title Hover Color","qi-blocks"),blockAttributeKey:"titleHoverColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(Eo,{label:(0,e.__)("Title Typography","qi-blocks"),attrNameTemplate:"Title",blockAttributes:t,setAttributes:o,popup:!0}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Title Hover Underline","qi-blocks"),value:t.titleHoverUnderline,options:de("no_yes",!1),onChange:e=>o({titleHoverUnderline:e})}),"no"!==t.showExcerpt&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Kt,{label:(0,e.__)("Excerpt Color","qi-blocks"),blockAttributeKey:"excerptColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(Eo,{label:(0,e.__)("Excerpt Typography","qi-blocks"),attrNameTemplate:"Excerpt",blockAttributes:t,setAttributes:o,popup:!0})),wp.element.createElement(Kt,{label:(0,e.__)("Info Color","qi-blocks"),blockAttributeKey:"infoColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(Kt,{label:(0,e.__)("Info Hover Color","qi-blocks"),blockAttributeKey:"infoHoverColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(Eo,{label:(0,e.__)("Info Typography","qi-blocks"),attrNameTemplate:"Info",blockAttributes:t,setAttributes:o,popup:!0}),"yes"===t.showInfoIcons&&wp.element.createElement(Kt,{label:(0,e.__)("Info Icons Color","qi-blocks"),blockAttributeKey:"infoIconsColor",blockAttributes:t,setAttributes:o}),"minimal"!==t.itemLayout&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ne,{label:(0,e.__)("Image Border Radius","qi-blocks"),setAttributes:o,blockAttributes:t,attrNameTemplate:"Image",attrName:"BorderRadius",unitType:"pxAndPercent"}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Image Hover","qi-blocks"),value:t.imageHover,options:[{value:"zoom",label:(0,e.__)("Zoom In","qi-blocks")},{value:"zoom-out",label:(0,e.__)("Zoom Out","qi-blocks")},{value:"move",label:(0,e.__)("Move","qi-blocks")},{value:"",label:(0,e.__)("None","qi-blocks")}],onChange:e=>o({imageHover:e})}),["zoom","zoom-out"].includes(t.imageHover)&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Image Hover Zoom Origin","qi-blocks"),value:t.imageZoomOrigin,options:[{value:"",label:(0,e.__)("Center","qi-blocks")},{value:"top",label:(0,e.__)("Top","qi-blocks")},{value:"bottom",label:(0,e.__)("Bottom","qi-blocks")},{value:"left",label:(0,e.__)("Left","qi-blocks")},{value:"right",label:(0,e.__)("Right","qi-blocks")}],onChange:e=>o({imageZoomOrigin:e})}),wp.element.createElement(Kt,{label:(0,e.__)("Overlay Color","qi-blocks"),blockAttributeKey:"overlayColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(Kt,{label:(0,e.__)("Overlay Hover Color","qi-blocks"),blockAttributeKey:"overlayHoverColor",blockAttributes:t,setAttributes:o})),"standard"===t.itemLayout&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Kt,{label:(0,e.__)("Bottom Info Color","qi-blocks"),blockAttributeKey:"standardBottomInfoColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(Kt,{label:(0,e.__)("Bottom Info Hover Color","qi-blocks"),blockAttributeKey:"standardBottomInfoHoverColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(Eo,{label:(0,e.__)("Bottom Info Typography","qi-blocks"),attrNameTemplate:"StandardBottomInfo",blockAttributes:t,setAttributes:o,popup:!0}))),wp.element.createElement(u.PanelBody,{title:(0,e.__)("Layout Spacing Style","qi-blocks"),initialOpen:!1},wp.element.createElement(eo,{label:(0,e.__)("Post Info Margin Bottom","qi-blocks"),blockAttributeKey:"postInfoMarginBottom",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.postInfoMarginBottomUnit?10:100}),wp.element.createElement(eo,{label:(0,e.__)("Title Margin Bottom","qi-blocks"),blockAttributeKey:"titleMarginBottom",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.postInfoMarginBottomUnit?10:100}),["boxed","date-boxed","standard"].includes(t.itemLayout)&&wp.element.createElement(eo,{label:(0,e.__)("Text Margin Bottom","qi-blocks"),blockAttributeKey:"textMarginBottom",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.textMarginBottomUnit?10:100}),["boxed","date-boxed","info-on-image","side-image"].includes(t.itemLayout)&&wp.element.createElement(Ne,{label:(0,e.__)("Content Padding","qi-blocks"),attrNameTemplate:"Content",attrName:"Padding",blockAttributes:t,setAttributes:o}),["date-boxed","standard"].includes(t.itemLayout)&&wp.element.createElement(eo,{label:(0,e.__)("Image Margin Bottom","qi-blocks"),blockAttributeKey:"imageMarginBottom",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.imageMarginBottomUnit?10:100}),"minimal"===t.itemLayout&&wp.element.createElement(eo,{label:(0,e.__)("Item Padding Top","qi-blocks"),blockAttributeKey:"minimalItemPaddingTop",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.minimalItemPaddingTopUnit?10:100}),"side-image"===t.itemLayout&&wp.element.createElement(eo,{label:(0,e.__)("Image Width","qi-blocks"),blockAttributeKey:"sideImageWidth",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.sideImageWidthUnit?30:100,rangeMax:600})),["boxed","minimal","side-image"].includes(t.itemLayout)&&wp.element.createElement(u.PanelBody,{title:(0,e.__)("Content Style","qi-blocks"),initialOpen:!1},"boxed"===t.itemLayout&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Kt,{label:(0,e.__)("Content Background Color","qi-blocks"),blockAttributeKey:"boxedContentBackgroundColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(so,{label:(0,e.__)("Item Shadow","qi-blocks"),blockAttributes:t,setAttributes:o,popup:!0,attrNameTemplate:"BoxedItem"})),"minimal"===t.itemLayout&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Kt,{label:(0,e.__)("Border Top Color","qi-blocks"),blockAttributeKey:"minimalBorderTopColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(eo,{label:(0,e.__)("Border Top Thickness","qi-blocks"),blockAttributeKey:"minimalBorderTopThickness",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"pxAndEm"}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Border Top Style","qi-blocks"),value:t.minimalBorderTopStyle,options:de("border_style"),onChange:e=>o({minimalBorderTopStyle:e})})),"side-image"===t.itemLayout&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(u.SelectControl,{label:(0,e.__)("Content Vertical Alignment","qi-blocks"),value:t.sideImageVerticalAlignment,options:[{value:"center",label:(0,e.__)("Middle","qi-blocks")},{value:"flex-start",label:(0,e.__)("Top","qi-blocks")},{value:"flex-end",label:(0,e.__)("Bottom","qi-blocks")}],onChange:e=>o({sideImageVerticalAlignment:e})}),wp.element.createElement(N,{label:(0,e.__)("Reverse Columns","qi-blocks"),blockAttributeKey:"reverseColumns",blockAttributes:t,setAttributes:o}))),["boxed","date-boxed","info-on-image"].includes(t.itemLayout)&&"no"!==t.showDate&&wp.element.createElement(u.PanelBody,{title:(0,e.__)("Date Style","qi-blocks"),initialOpen:!1},wp.element.createElement(Kt,{label:(0,e.__)("Date Color","qi-blocks"),blockAttributeKey:"dateColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(Kt,{label:(0,e.__)("Date Hover Color","qi-blocks"),blockAttributeKey:"dateHoverColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(Eo,{label:(0,e.__)("Date Typography","qi-blocks"),attrNameTemplate:"Date",blockAttributes:t,setAttributes:o,popup:!0}),wp.element.createElement(Kt,{label:(0,e.__)("Date Background Color","qi-blocks"),blockAttributeKey:"dateBackgroundColor",blockAttributes:t,setAttributes:o}),wp.element.createElement(Ne,{label:(0,e.__)("Date Padding","qi-blocks"),attrNameTemplate:"Date",attrName:"Padding",blockAttributes:t,setAttributes:o}),wp.element.createElement(eo,{label:(0,e.__)("Date Border Radius","qi-blocks"),blockAttributeKey:"dateBorderRadius",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.dateBorderRadiusUnit?10:100}),wp.element.createElement(eo,{label:(0,e.__)("Date Vertical Offset","qi-blocks"),blockAttributeKey:"dateVerticalOffset",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.dateVerticalOffsetUnit?10:100}),wp.element.createElement(eo,{label:(0,e.__)("Date Horizontal Offset","qi-blocks"),blockAttributeKey:"dateHorizontalOffset",blockAttributes:t,setAttributes:o,allowScreens:!0,unitType:"space",rangeDecimalMax:"em"===t.dateHorizontalOffsetUnit?10:100})),("minimal"===t.itemLayout&&"yes"===t.showButton||["standard","boxed","date-boxed","side-image"].includes(t.itemLayout)&&"no"!==t.showButton)&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(u.PanelBody,{title:(0,e.__)("Read More Button Style","qi-blocks"),initialOpen:!1},wp.element.createElement(Eo,{label:(0,e.__)("Button Text Typography","qi-blocks"),attrNameTemplate:"ButtonText",blockAttributes:t,setAttributes:o,popup:!0}),wp.element.createElement(u.TabPanel,{className:"qodef-tab-panel qodef--inner",tabs:[{name:"normal",title:(0,e.__)("Normal","qi-blocks")},{name:"hover",title:(0,e.__)("Hover","qi-blocks")}]},n=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ro,{label:(0,e.__)(`Text ${"hover"===n.name?"Hover":""} Color`,"qi-blocks"),blockAttributes:t,setAttributes:o,attrNameTemplate:"Button"+("hover"===n.name?"Hover":"")}),"textual"!==t.buttonLayout&&wp.element.createElement(wp.element.Fragment,null,("filled"===t.buttonLayout||"hover"===n.name)&&wp.element.createElement(Ro,{label:(0,e.__)(`Background ${"hover"===n.name?"Hover":""} Color`,"qi-blocks"),blockAttributes:t,setAttributes:o,attrNameTemplate:`Button${"hover"===n.name?"Hover":""}Background`}),wp.element.createElement(Ro,{label:(0,e.__)(`Border ${"hover"===n.name?"Hover":""} Color`,"qi-blocks"),blockAttributes:t,setAttributes:o,attrNameTemplate:"ButtonBorder"+("hover"===n.name?"Hover":"")}),"hover"===n.name&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Reveal Background","qi-blocks"),value:t.buttonRevealHover,options:[{value:"",label:(0,e.__)("None","qi-blocks")},{value:"reveal-horizontal",label:(0,e.__)("Horizontal","qi-blocks")},{value:"reveal-vertical",label:(0,e.__)("Vertical","qi-blocks")}],onChange:e=>o({buttonRevealHover:e})})))),"textual"!==t.buttonLayout&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ne,{label:(0,e.__)("Border Width","qi-blocks"),setAttributes:o,blockAttributes:t,attrNameTemplate:"Button",attrName:"BorderWidth",allowUnitControl:!1}),wp.element.createElement(Ne,{label:(0,e.__)("Border Radius","qi-blocks"),setAttributes:o,blockAttributes:t,attrNameTemplate:"Button",attrName:"BorderRadius",unitType:"pxAndPercent"}),wp.element.createElement(Ne,{label:(0,e.__)("Padding","qi-blocks"),setAttributes:o,blockAttributes:t,attrNameTemplate:"Button",attrName:"Padding"})),"inner-border"===t.buttonType&&wp.element.createElement(u.BaseControl,{className:"qodef-base-section-label",label:(0,e.__)("Inner Border Style","qi-blocks")},wp.element.createElement(u.TabPanel,{className:"qodef-tab-panel qodef--inner",tabs:[{name:"normal",title:(0,e.__)("Normal","qi-blocks")},{name:"hover",title:(0,e.__)("Hover","qi-blocks")}]},n=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ro,{label:(0,e.__)(`Inner Border ${"hover"===n.name?"Hover":""} Color`,"qi-blocks"),blockAttributes:t,setAttributes:o,attrNameTemplate:"ButtonInnerBorder"+("hover"===n.name?"Hover":"")}),"hover"===n.name&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Hover","qi-blocks"),value:t.buttonInnerBorderHoverType,options:[{value:"",label:(0,e.__)("Change Color","qi-blocks")},{value:"draw q-draw-center",label:(0,e.__)("Draw From Center","qi-blocks")},{value:"draw q-draw-one-point",label:(0,e.__)("Draw From One Point","qi-blocks")},{value:"draw q-draw-two-points",label:(0,e.__)("Draw From Two Points","qi-blocks")},{value:"remove q-remove-center",label:(0,e.__)("Remove To Center","qi-blocks")},{value:"remove q-remove-one-point",label:(0,e.__)("Remove To One Point","qi-blocks")},{value:"remove q-remove-two-points",label:(0,e.__)("Remove To Two Points","qi-blocks")},{value:"move-outer-edge",label:(0,e.__)("Move To Outer Edge","qi-blocks")}],onChange:e=>o({buttonInnerBorderHoverType:e})}))),wp.element.createElement(eo,{label:(0,e.__)("Inner Border Offset","qi-blocks"),blockAttributeKey:"buttonInnerBorderOffset",setAttributes:o,blockAttributes:t,rangeMax:100,rangeDecimalMax:100,allowScreens:!0,unitType:"pxAndPercent"}),wp.element.createElement(eo,{label:(0,e.__)("Inner Border Width","qi-blocks"),blockAttributeKey:"buttonInnerBorderWidth",setAttributes:o,blockAttributes:t,rangeMax:10,rangeMin:1,allowScreens:!0,allowUnits:!1})),"yes"===t.buttonUnderline&&wp.element.createElement(u.BaseControl,{className:"qodef-base-section-label",label:(0,e.__)("Underline Style","qi-blocks")},wp.element.createElement(u.TabPanel,{className:"qodef-tab-panel qodef--inner",tabs:[{name:"normal",title:(0,e.__)("Normal","qi-blocks")},{name:"hover",title:(0,e.__)("Hover","qi-blocks")}]},n=>wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(Ro,{label:(0,e.__)(`Underline ${"hover"===n.name?"Hover":""} Color`,"qi-blocks"),blockAttributes:t,setAttributes:o,attrNameTemplate:"ButtonUnderline"+("hover"===n.name?"Hover":"")}),wp.element.createElement(eo,{label:(0,e.__)(`Underline ${"hover"===n.name?"Hover":""} Width`,"qi-blocks"),blockAttributeKey:`buttonUnderline${"hover"===n.name?"Hover":""}Width`,setAttributes:o,blockAttributes:t,rangeMax:100,rangeMin:0,rangeDecimalMax:100,rangeDecimalMin:0,allowScreens:!0,unitType:"pxAndPercent"}),"hover"===n.name&&"center"!==t.buttonUnderlineAlignment&&wp.element.createElement(u.SelectControl,{label:(0,e.__)("Enable Hover Underline Draw","qi-blocks"),value:t.buttonUnderlineDraw,options:de("no_yes",!1),onChange:e=>o({buttonUnderlineDraw:e})}))),wp.element.createElement(eo,{label:(0,e.__)("Underline Offset","qi-blocks"),blockAttributeKey:"buttonUnderlineOffset",setAttributes:o,blockAttributes:t,rangeMax:20,rangeMin:-20,allowScreens:!0,allowUnits:!1}),wp.element.createElement(eo,{label:(0,e.__)("Underline Thickness","qi-blocks"),blockAttributeKey:"buttonUnderlineThickness",setAttributes:o,blockAttributes:t,rangeMax:100,rangeMin:0,rangeDecimalMax:100,rangeDecimalMin:0,allowScreens:!0,unitType:"pxAndPercent"}),wp.element.createElement(u.SelectControl,{label:(0,e.__)("Underline Alignment","qi-blocks"),value:t.buttonUnderlineAlignment,options:de("horizontal_alignment",!1),onChange:e=>o({buttonUnderlineAlignment:e})}))))),"advanced"===n.name&&wp.element.createElement(uo,{blockAttributes:t,setAttributes:o})))),wp.element.createElement("style",null,se(ie(Ye,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--${t.itemLayout} .qodef-e-info-date a:hover {\n                            ${se(ie(Ye,n),!1)}\n                        }`,se(ie(nt,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--${t.itemLayout} .qodef-e-info-date {\n                            ${se(ie(nt,n),!1)}\n                        }`,se(ie(He,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--boxed .qodef-e-inner {\n                            ${se(ie(He,n),!1)}\n                        }`,se(ie(Ue,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--boxed .qodef-e-content {\n                            ${se(ie(Ue,n),!1)}\n                        }`,se(ie(Ve,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--side-image .qodef-e-media {\n                            ${se(ie(Ve,n),!1)}\n                        }`,se(ie(Le,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--minimal .qodef-e-inner {\n                            ${se(ie(Le,n),!1)}\n                        }`,se(ie(je,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--minimal .qodef-gutenberg-row {\n                            ${se(ie(je,n),!1)}\n                        }`,se(ie($e,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--${t.itemLayout} .qodef-e-content {\n                            ${se(ie($e,n),!1)}\n                        }`,se(ie(Me,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--${t.itemLayout} .qodef-e-media {\n                            ${se(ie(Me,n),!1)}\n                        }`,se(ie(Re,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--${t.itemLayout} .qodef-e-text {\n                            ${se(ie(Re,n),!1)}\n                        }`,se(ie(De,n))&&`.${r} .qi-block-blog-list .qodef-e-info.qodef-info--top {\n                            ${se(ie(De,n),!1)}\n                        }`,se(ie(Te,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--standard .qodef-e-info.qodef-info--bottom .qodef-e-info-item a:hover {\n                            ${se(ie(Te,n),!1)}\n                        }`,se(ie(Be,n))&&`.${r} .qi-block-blog-list.qodef-item-layout--standard .qodef-e-info.qodef-info--bottom .qodef-e-info-item {\n                            ${se(ie(Be,n),!1)}\n                        }`,se(ie(Ee,n))&&`.${r} .qi-block-blog-list .qodef-e:hover .qodef-e-media-image a:after {\n                            ${se(ie(Ee,n),!1)}\n                        }`,se(ie(Ie,n))&&`.${r} .qi-block-blog-list .qodef-e-media-image a:after {\n                            ${se(ie(Ie,n),!1)}\n                        }`,se(ie(qe,n))&&`.${r} .qi-block-blog-list .qodef-e-info.qodef-info--top .qodef-e-info-item-icon {\n                            ${se(ie(qe,n),!1)}\n                        }`,se(ie(we,n))&&`.${r} .qi-block-blog-list .qodef-e-info.qodef-info--top .qodef-e-info-item a:hover {\n                            ${se(ie(we,n),!1)}\n                        }`,se(ie(Se,n))&&`.${r} .qi-block-blog-list .qodef-e-info.qodef-info--top .qodef-e-info-item {\n                            ${se(ie(Se,n),!1)}\n                        }`,se(ie(Z,n))&&`.${r} .qi-block-blog-list .qodef-e-title:hover, .${r} .qi-block-blog-list .qodef-e-title:hover a {\n                            ${se(ie(Z,n),!1)}\n                        }`,se(ie(X,n))&&`.${r} .qi-block-blog-list .qodef-e-title, \n\t\t\t\t\t\t.${r} .qi-block-blog-list .qodef-e-title a {\n                            ${se(ie(X,n),!1)}\n                        }`,se(ie(K,n))&&`.${r} .qi-block-blog-list .qodef-m-pagination.qodef--standard .page-numbers {\n                            ${se(ie(K,n),!1)}\n                        }`,se(ie(Y,n))&&`.${r} .qi-block-blog-list .qodef-m-pagination.qodef--standard .page-numbers.current,\n                         .${r} .qi-block-blog-list .qodef-m-pagination.qodef--standard .page-numbers:hover {\n                            ${se(ie(Y,n),!1)}\n                        }`,se(ie(R,n))&&`.${r} .qi-block-blog-list .qodef-gutenberg-row >.qodef-e:nth-of-type(even) > * {\n                            ${se(ie(R,n),!1)}\n                        }`,se(xt.desktop)&&`.${r} .qi-block-blog-list .qi-block-button:hover .qodef-m-border {\n                            ${se(xt.desktop)}\n                        }`,se(rt.desktop)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--filled {\n                            ${se(rt.desktop,!1)}\n                        }`,se(st.desktop)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--outlined {\n                            ${se(st.desktop,!1)}\n                        }`,se(lt.desktop)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--textual {\n                            ${se(lt.desktop,!1)}\n                        }`,se(dt.desktop)&&`.${r} .qi-block-blog-list .qi-block-button:not(.qodef-layout--textual):hover {\n                            ${se(dt.desktop)}\n                        }`,se(gt.desktop)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--textual:hover {\n                            ${se(gt.desktop)}\n                        }`,se(Nt.desktop)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-type--inner-border:not(.qodef-inner-border-hover--draw):hover  .qodef-m-inner-border:not(.qodef-m-inner-border-copy) {\n                            ${se(Nt.desktop)}\n                        }`,se(ie($t,n),!1)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-block.qodef-text-underline .qodef-m-text:after {\n                            ${se(ie($t,n),!1)}\n                        }`,se(ie(Ft,n),!1)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-block.qodef-text-underline:hover .qodef-m-text:after {\n                            ${se(ie(Ft,n),!1)}\n                        }`,se(ie(Ct,n),!1)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-type--icon-boxed .qodef-m-icon {\n                            ${se(ie(Ct,n),!1)}\n                        }`,se(ie(It,n),!1)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-type--icon-boxed.qodef-icon-background-hover--reveal .qodef-m-icon:after {\n                            ${se(ie(It,n),!1)}\n                        }`,se(ie(It,n))&&`.${r} .qi-block-blog-list .qi-block-button.qodef-type--icon-boxed:not(.qodef-icon-background-hover--reveal):hover .qodef-m-icon {\n                            ${se(ie(It,n))}\n                        }`,se(ie(ft,n))&&`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--filled:not(.qodef-hover--reveal):hover {\n                            ${se(ie(ft,n))}\n                        }`,se(ie(ft,n))&&`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--outlined:not(.qodef-hover--reveal):hover {\n                            ${se(ie(ft,n))}\n                        }`,se(ie(ft,n),!1)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--filled.qodef-hover--reveal:after {\n                            ${se(ie(ft,n),!1)}\n                        }`,se(ie(ft,n),!1)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-layout--outlined.qodef-hover--reveal:after {\n                            ${se(ie(ft,n),!1)}\n                        }`,se(ie(ct,n),!1)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-type--icon-boxed .qodef-m-text {\n                            ${se(ie(ct,n),!1)}\n                        }`,se(ie(bt,n),!1)&&`.${r} .qi-block-blog-list .qi-block-button.qodef-type--icon-boxed .qodef-m-icon {\n                            ${se(ie(bt,n),!1)}\n                        }`,D.editorStyle),wp.element.createElement("div",E,wp.element.createElement("div",{className:O},this.state.listLoading?wp.element.createElement(u.Spinner,null):wp.element.createElement(wp.element.Fragment,null,"masonry"===t.behavior&&wp.element.createElement("div",{className:P},wp.element.createElement("div",{className:"qodef-gutenberg-row"},wp.element.createElement("div",{className:"qodef-gutenberg-masonry-sizer"}),b())),"columns"===t.behavior&&wp.element.createElement("div",{className:"qodef-gutenberg-row"},b()),(()=>{const o="yes"===t.enablePagination&&p>1;let r=[];return o&&(r.push(wp.element.createElement("span",{className:"page-numbers current","aria-current":"page"},"1")),r.push(wp.element.createElement("a",{className:"page-numbers"},"2")),Math.ceil(p)>2&&(r.push(wp.element.createElement("a",{className:"page-numbers"},"3")),Math.ceil(p)>4&&r.push(wp.element.createElement("span",{className:"page-numbers dots"},"...")),Math.ceil(p)>3&&r.push(wp.element.createElement("a",{className:"page-numbers"},Math.ceil(p)))),r.push(wp.element.createElement("a",{className:"page-numbers next",dangerouslySetInnerHTML:{__html:t.paginationArrowNextIcon.html||qiBlocksEditor.vars.arrowRightIcon},style:ie(L,n)}))),o&&wp.element.createElement("div",{className:"qodef-m-pagination qodef--standard",style:ie(M,n)},wp.element.createElement("nav",{className:"navigation pagination",role:"navigation","aria-label":(0,e.__)("Posts","qi-blocks")},wp.element.createElement("h2",{className:"screen-reader-text"},(0,e.__)("Posts navigation","qi-blocks")),wp.element.createElement("div",{className:"nav-links"},r)))})()))))}}Qo.defaultProps={previewScreen:A};const Jo=(0,s.compose)(Xo,Uo)(Qo);var en=o(5072),tn=o.n(en),on=o(7825),nn=o.n(on),rn=o(7659),ln=o.n(rn),an=o(5056),sn=o.n(an),cn=o(540),un=o.n(cn),pn=o(1113),mn=o.n(pn),bn=o(9e3),dn={};dn.styleTagTransform=mn(),dn.setAttributes=sn(),dn.insert=ln().bind(null,"head"),dn.domAPI=nn(),dn.insertStyleElement=un();tn()(bn.A,dn);bn.A&&bn.A.locals&&bn.A.locals;var fn;function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},gn.apply(null,arguments)}const hn=e=>g.createElement("svg",gn({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:24,height:24},e),fn||(fn=g.createElement("path",{fill:"none",stroke:"#EE2852",strokeMiterlimit:10,d:"M.504 2.538h10.02v14H.504zM13.477 2.538h10.02v14h-10.02zM0 19.583h6.999M0 21.542h7M13 19.583h6.998M13 21.542h7"})));(0,t.registerBlockType)("qi-blocks/blog-list",{icon:wp.element.createElement(hn,null),title:(0,e.__)("Blog List","qi-blocks"),description:(0,e.__)("Display a captivating list with your blog posts in a number of visually appealing ways.","qi-blocks"),category:"qi-blocks",keywords:[(0,e.__)("business","qi-blocks"),(0,e.__)("article","qi-blocks"),(0,e.__)("post","qi-blocks"),(0,e.__)("blogging","qi-blocks"),(0,e.__)("post date","qi-blocks"),(0,e.__)("post author","qi-blocks"),(0,e.__)("qi","qi-blocks")],example:{attributes:{behavior:"columns",columns:1,postsPerPage:1,excerptLength:"30"}},edit:Jo})})()})();